Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: app/controllers/application_controller.rb Changed instance theme selection by instance flavour selection.
This commit is contained in:
@@ -93,11 +93,11 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def avatar_exists?
|
||||
object.avatar.exists?
|
||||
object.avatar?
|
||||
end
|
||||
|
||||
def header_exists?
|
||||
object.header.exists?
|
||||
object.header?
|
||||
end
|
||||
|
||||
def manually_approves_followers
|
||||
|
||||
@@ -33,7 +33,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def body
|
||||
str = truncate(strip_tags(object.target_status&.spoiler_text&.presence || object.target_status&.text || object.from_account.note), length: 140)
|
||||
HTMLEntities.new.decode(str.to_str) # Do not encode entities, since this value will not be used in HTML
|
||||
str = strip_tags(object.target_status&.spoiler_text&.presence || object.target_status&.text || object.from_account.note)
|
||||
truncate(HTMLEntities.new.decode(str.to_str), length: 140) # Do not encode entities, since this value will not be used in HTML
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user