Browse Source

Fix wrongful mentions breaking status update

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
29996a7e8b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/services/process_mentions_service.rb

+ 2
- 1
app/services/process_mentions_service.rb View File

@ -12,9 +12,10 @@ class ProcessMentionsService < BaseService
if mentioned_account.nil? && !domain.nil?
mentioned_account = follow_remote_account_service.("#{match.first}")
next if mentioned_account.nil?
end
next if mentioned_account.nil?
mentioned_account.mentions.where(status: status).first_or_create(status: status)
end

Loading…
Cancel
Save