diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-17 18:48:46 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-07-18 01:00:51 -0500 |
commit | 57c448d9e2d71be819552092dd4688488152776c (patch) | |
tree | 2bb39c864067428b5f19e47ddde2f3d441553683 /app/lib/activitypub/activity/update.rb | |
parent | c5b7bf491e9aaf0a92f7899d60d12705d98436dc (diff) |
[Federation] Dereference object URIs in Create and Update messages
Diffstat (limited to 'app/lib/activitypub/activity/update.rb')
-rw-r--r-- | app/lib/activitypub/activity/update.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb index 70035325b..018e2df54 100644 --- a/app/lib/activitypub/activity/update.rb +++ b/app/lib/activitypub/activity/update.rb @@ -4,6 +4,8 @@ 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)) |