about summary refs log tree commit diff
path: root/app/lib/activitypub/activity/reject.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/activitypub/activity/reject.rb')
-rw-r--r--app/lib/activitypub/activity/reject.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/reject.rb b/app/lib/activitypub/activity/reject.rb
index d81b157de..dba21fb9a 100644
--- a/app/lib/activitypub/activity/reject.rb
+++ b/app/lib/activitypub/activity/reject.rb
@@ -28,7 +28,7 @@ class ActivityPub::Activity::Reject < ActivityPub::Activity
   end
 
   def relay
-    @relay ||= Relay.find_by(follow_activity_id: object_uri)
+    @relay ||= Relay.find_by(follow_activity_id: object_uri) unless object_uri.nil?
   end
 
   def relay_follow?