mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Merge commit '22e2e7f02b2f25f30abd6a616bc3b0b543b30279' into glitch-soc/merge-upstream
This commit is contained in:
@@ -97,11 +97,11 @@ class ActivityPub::Parser::StatusParser
|
||||
end
|
||||
|
||||
def favourites_count
|
||||
@object.dig('likes', 'totalItems')
|
||||
@object['likes']['totalItems'] if @object.is_a?(Hash) && @object['likes'].is_a?(Hash)
|
||||
end
|
||||
|
||||
def reblogs_count
|
||||
@object.dig('shares', 'totalItems')
|
||||
@object['shares']['totalItems'] if @object.is_a?(Hash) && @object['shares'].is_a?(Hash)
|
||||
end
|
||||
|
||||
def quote_policy
|
||||
|
||||
Reference in New Issue
Block a user