Adding a block model and filter mentions from blocked users (fix #60)
This commit is contained in:
parent
a488b05726
commit
9d59d7b463
11 changed files with 55 additions and 12 deletions
|
@ -47,7 +47,7 @@ class StreamEntry < ApplicationRecord
|
|||
end
|
||||
|
||||
def mentions
|
||||
activity.respond_to?(:mentions) ? activity.mentions.map { |x| x.account } : []
|
||||
activity.respond_to?(:mentions) ? activity.mentions.map(&:account) : []
|
||||
end
|
||||
|
||||
def activity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue