about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-05-02 16:08:16 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-05-02 16:08:16 +0200
commitd0cdd5cf94ff479e4037dc47539f7f9c408831b3 (patch)
tree0e142aa837206b2fb3b08472060adf1e1748c5e6 /app/lib/activitypub
parentcae933510cbc64db27aeb44e205ce17ff4974da7 (diff)
Accept actor object updates from all supported actor types (#7312)
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/activity/update.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/update.rb b/app/lib/activitypub/activity/update.rb
index 47e98e041..aa5907f03 100644
--- a/app/lib/activitypub/activity/update.rb
+++ b/app/lib/activitypub/activity/update.rb
@@ -1,8 +1,10 @@
 # frozen_string_literal: true
 
 class ActivityPub::Activity::Update < ActivityPub::Activity
+  SUPPORTED_TYPES = %w(Application Group Organization Person Service).freeze
+
   def perform
-    update_account if equals_or_includes?(@object['type'], 'Person')
+    update_account if equals_or_includes_any?(@object['type'], SUPPORTED_TYPES)
   end
 
   private