0
0
Fork 0

Adding a block model and filter mentions from blocked users (fix #60)

This commit is contained in:
Eugen Rochko 2016-10-03 17:11:54 +02:00
parent a488b05726
commit 9d59d7b463
11 changed files with 55 additions and 12 deletions

View file

@ -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