about summary refs log tree commit diff
path: root/app/lib/ostatus
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/ostatus
parent17cd91c7776281bee68d57d898d598d576c70a0e (diff)
Fix ThreadResolveWorker getting queued with invalid URLs (#9628)
Diffstat (limited to 'app/lib/ostatus')
-rw-r--r--app/lib/ostatus/activity/creation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/ostatus/activity/creation.rb b/app/lib/ostatus/activity/creation.rb
index 8f8c70052..3840c8fbf 100644
--- a/app/lib/ostatus/activity/creation.rb
+++ b/app/lib/ostatus/activity/creation.rb
@@ -57,7 +57,7 @@ class OStatus::Activity::Creation < OStatus::Activity::Base
       save_emojis(status)
     end
 
-    if thread? && status.thread.nil?
+    if thread? && status.thread.nil? && Request.valid_url?(thread.second)
       Rails.logger.debug "Trying to attach #{status.id} (#{id}) to #{thread.first}"
       ThreadResolveWorker.perform_async(status.id, thread.second)
     end