diff options
author | Starfall <us@starfall.systems> | 2020-07-23 16:25:17 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-07-23 16:25:17 -0500 |
commit | e3d96a9bc62f57d60dc21906b4b803e346b0a738 (patch) | |
tree | 7506b93ec2c20bf068f2b57c31d0a05e0485aed5 /app/lib/activitypub/activity | |
parent | 57c448d9e2d71be819552092dd4688488152776c (diff) |
Revert "[Federation] Dereference object URIs in Create and Update messages"
This reverts commit 57c448d9e2d71be819552092dd4688488152776c. Implementation was merged upstream; removing the duplicate change.
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 2 | ||||
-rw-r--r-- | app/lib/activitypub/activity/update.rb | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 08dd98e94..e81452e3c 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -2,8 +2,6 @@ class ActivityPub::Activity::Create < ActivityPub::Activity def perform - dereference_object! - case @object['type'] when 'EncryptedMessage' create_encrypted_message diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb index 018e2df54..70035325b 100644 --- a/app/lib/activitypub/activity/update.rb +++ b/app/lib/activitypub/activity/update.rb @@ -4,8 +4,6 @@ class ActivityPub::Activity::Update < ActivityPub::Activity SUPPORTED_TYPES = %w(Application Group Organization Person Service).freeze def perform - dereference_object! - if equals_or_includes_any?(@object['type'], SUPPORTED_TYPES) update_account elsif equals_or_includes_any?(@object['type'], %w(Question)) |