diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-04-10 22:13:15 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-04-11 20:40:29 +0200 |
commit | 50eb8f1f613df0a2379565f5f5eabd8acc110f15 (patch) | |
tree | 008492064435329839a8f29ddf4849e79c80803d /app/models/account.rb | |
parent | 33c2bbdda7f94789dc0455711093ee788c64a531 (diff) |
Add backend support for bookmarks
Bookmarks behave like favourites, except they aren't shared with other users and do not have an associated counter.
Diffstat (limited to 'app/models/account.rb')
-rw-r--r-- | app/models/account.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 31f3d5253..1be2f2da6 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -80,6 +80,7 @@ class Account < ApplicationRecord has_many :stream_entries, inverse_of: :account, dependent: :destroy has_many :statuses, inverse_of: :account, dependent: :destroy has_many :favourites, inverse_of: :account, dependent: :destroy + has_many :bookmarks, inverse_of: :account, dependent: :destroy has_many :mentions, inverse_of: :account, dependent: :destroy has_many :notifications, inverse_of: :account, dependent: :destroy |