diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-16 23:18:38 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | b1e6e6957e62f3da3857f42ec6c343cb9660434d (patch) | |
tree | e1305ef8cf98aabe10fa58c8bc27d0408c681066 /app/models/conversation.rb | |
parent | af0b6f445c597b41e861da9e77f39b4caed3e753 (diff) |
[Federation] Include and dereference URI to the root post of threads; dynamically update thread permissions
Diffstat (limited to 'app/models/conversation.rb')
-rw-r--r-- | app/models/conversation.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/conversation.rb b/app/models/conversation.rb index d1674fe4e..e065c34c8 100644 --- a/app/models/conversation.rb +++ b/app/models/conversation.rb @@ -9,6 +9,7 @@ # updated_at :datetime not null # account_id :bigint(8) # public :boolean default(FALSE), not null +# root :string # class Conversation < ApplicationRecord @@ -16,7 +17,7 @@ class Conversation < ApplicationRecord has_many :statuses has_many :mutes, class_name: 'ConversationMute', inverse_of: :conversation, dependent: :destroy - belongs_to :account, inverse_of: :threads + belongs_to :account, inverse_of: :threads, optional: true def local? uri.nil? |