about summary refs log tree commit diff
path: root/app/lib/activitypub/activity
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-26 19:15:53 +0100
committerGitHub <noreply@github.com>2018-12-26 19:15:53 +0100
commitaa9a20cde0fe3eb2a4af570cd4437c34a18ce0da (patch)
treec32052c0e588b7bf046e8e20309dcd2b7cefb96f /app/lib/activitypub/activity
parent17cd91c7776281bee68d57d898d598d576c70a0e (diff)
Fix ThreadResolveWorker getting queued with invalid URLs (#9628)
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r--app/lib/activitypub/activity/create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index 9d2ddd3f6..2b238bc88 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -210,7 +210,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
   end
 
   def resolve_thread(status)
-    return unless status.reply? && status.thread.nil?
+    return unless status.reply? && status.thread.nil? && Request.valid_url?(in_reply_to_uri)
     ThreadResolveWorker.perform_async(status.id, in_reply_to_uri)
   end