Browse Source

Fix process mentions for local users, as local users are considered to use OStatus (#5618)

pull/4/head
ThibG 6 years ago
committed by Eugen Rochko
parent
commit
889ada5ee2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/process_mentions_service.rb

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

@ -17,7 +17,7 @@ class ProcessMentionsService < BaseService
mentioned_account = nil
end
next match if mentioned_account.nil? || (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.acct}"

Loading…
Cancel
Save