diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-21 23:40:01 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:44:01 -0500 |
commit | c752a46c457759149c14ae0e4d501d5ef2ce478a (patch) | |
tree | 5066a3b5cf73ba06d16a8b494bc3e91a094f807b /app/models/concerns | |
parent | 03338243d28df8ecca77785c77214260ca0c32c9 (diff) |
[Privacy] Implement thread ownership and visibility
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/account_associations.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/concerns/account_associations.rb b/app/models/concerns/account_associations.rb index cca3a17fa..db7396582 100644 --- a/app/models/concerns/account_associations.rb +++ b/app/models/concerns/account_associations.rb @@ -60,5 +60,8 @@ module AccountAssociations # Hashtags has_and_belongs_to_many :tags has_many :featured_tags, -> { includes(:tag) }, dependent: :destroy, inverse_of: :account + + # Threads + has_many :threads, class_name: 'Conversation', inverse_of: :account, dependent: :nullify end end |