mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix wrongful mentions breaking status update
This commit is contained in:
parent
54ea7f5dfe
commit
29996a7e8b
@ -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…
Reference in New Issue
Block a user