mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Use already-known remote user data if resolving temporarily fails in mentions (#5702)
This commit is contained in:
parent
546257bc7f
commit
1c25853842
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ class ProcessMentionsService < BaseService
|
||||||
mentioned_account = nil
|
mentioned_account = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if mentioned_account.nil?
|
||||||
|
username, domain = match.first.split('@')
|
||||||
|
mentioned_account = Account.find_remote(username, domain)
|
||||||
|
end
|
||||||
|
|
||||||
next match if mentioned_account.nil? || (!mentioned_account.local? && mentioned_account.ostatus? && status.stream_entry.hidden?)
|
next match if mentioned_account.nil? || (!mentioned_account.local? && mentioned_account.ostatus? && status.stream_entry.hidden?)
|
||||||
|
|
||||||
mentioned_account.mentions.where(status: status).first_or_create(status: status)
|
mentioned_account.mentions.where(status: status).first_or_create(status: status)
|
||||||
|
|
Loading…
Reference in a new issue