diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-21 02:22:56 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-21 14:52:42 -0500 |
commit | 39b07aad85c0abd897f37860f5c9da854dcf523d (patch) | |
tree | 42e31cdcf95baa357ca1d5e91476421a9803f4ab /app/lib/activitypub/activity | |
parent | 97d578eebdcbbc4705a303e8923e0332651890c1 (diff) |
Drop Monsterfork v2 thread permissions; simplify feed filters
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 9d03e5247..6dbd8769c 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -437,18 +437,13 @@ class ActivityPub::Activity::Create < ActivityPub::Activity conversation = Conversation.find_by(uri: uri) if conversation.blank? if @object['inReplyTo'].blank? && replied_to_status.blank? - params = { - uri: uri, - root: object_uri, - account: @account, - }.freeze if conversation.blank? - conversation = Conversation.create!(params) + conversation = Conversation.create!(uri: uri, root: object_uri) elsif conversation.root.blank? - conversation.update!(params) + conversation.update!(uri: uri, root: object_uri) end elsif conversation.blank? - conversation = Conversation.create!(uri: uri, account_id: nil) + conversation = Conversation.create!(uri: uri) end conversation |