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
|
@ -27,12 +27,4 @@ module StreamEntriesHelper
|
|||
def favourited_by_me_class(status)
|
||||
user_signed_in? && current_user.account.favourited?(status) ? 'favourited' : ''
|
||||
end
|
||||
|
||||
def content_for_status(actual_status)
|
||||
if actual_status.local?
|
||||
linkify(actual_status)
|
||||
else
|
||||
sanitize(actual_status.content, tags: %w(a br p), attributes: %w(href rel))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue