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
|
@ -137,13 +137,7 @@ module AtomBuilderHelper
|
|||
|
||||
def conditionally_formatted(activity)
|
||||
if activity.is_a?(Status)
|
||||
if activity.reblog? && activity.reblog.local?
|
||||
linkify(activity.reblog)
|
||||
elsif !activity.reblog? && activity.local?
|
||||
linkify(activity)
|
||||
else
|
||||
activity.content
|
||||
end
|
||||
content_for_status(activity.reblog? ? activity.reblog : activity)
|
||||
elsif activity.nil?
|
||||
nil
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue