Merge remote-tracking branch 'parent/main' into kb_development
This commit is contained in:
commit
ec7b51504b
42 changed files with 498 additions and 227 deletions
|
@ -15,12 +15,6 @@ class REST::NotificationSerializer < ActiveModel::Serializer
|
|||
object.id.to_s
|
||||
end
|
||||
|
||||
def from_account
|
||||
return object.account if moderation_warning_event? # Hide moderator account
|
||||
|
||||
object.from_account
|
||||
end
|
||||
|
||||
def status_type?
|
||||
[:favourite, :emoji_reaction, :reaction, :reblog, :status_reference, :status, :list_status, :mention, :poll, :update].include?(object.type)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue