diff options
Diffstat (limited to 'app/lib/activitypub/activity.rb')
-rw-r--r-- | app/lib/activitypub/activity.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 9366cc984..7f39ef3f3 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -207,6 +207,7 @@ class ActivityPub::Activity def blocked? uri = object_uri.start_with?('http') ? object_uri : @object['url'] + return true if object_uri.nil? domain = uri.scan(/[\w\-]+\.[\w\-]+(?:\.[\w\-]+)*/).first domain.blank? ? true : DomainBlock.suspend?(domain) end |