Sanitize remote html in atom feeds, API (not just UI), use cached mention
relations on Status#mentions
This commit is contained in:
parent
7cd3de3494
commit
c8999a116e
6 changed files with 18 additions and 31 deletions
|
@ -50,7 +50,7 @@ RSpec.describe Status, type: :model do
|
|||
end
|
||||
|
||||
it 'returns mentioned accounts' do
|
||||
subject.text = 'Hello @bob!'
|
||||
subject.mentioned_accounts.create!(account: bob)
|
||||
expect(subject.mentions).to include bob
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue