mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 12:16:14 +00:00
Compare commits
3 Commits
e7652f6350
...
89064976a4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
89064976a4 | ||
![]() |
8929f5251d | ||
![]() |
8b34daf254 |
|
@ -95,11 +95,11 @@ class ActivityPub::Parser::StatusParser
|
||||||
end
|
end
|
||||||
|
|
||||||
def favourites_count
|
def favourites_count
|
||||||
@object.dig(:likes, :totalItems)
|
@object.dig('likes', 'totalItems')
|
||||||
end
|
end
|
||||||
|
|
||||||
def reblogs_count
|
def reblogs_count
|
||||||
@object.dig(:shares, :totalItems)
|
@object.dig('shares', 'totalItems')
|
||||||
end
|
end
|
||||||
|
|
||||||
def quote_policy
|
def quote_policy
|
||||||
|
|
|
@ -41,7 +41,7 @@ class FollowRequest < ApplicationRecord
|
||||||
MergeWorker.push_bulk(List.where(account: account).joins(:list_accounts).where(list_accounts: { account_id: target_account.id }).pluck(:id)) do |list_id|
|
MergeWorker.push_bulk(List.where(account: account).joins(:list_accounts).where(list_accounts: { account_id: target_account.id }).pluck(:id)) do |list_id|
|
||||||
[target_account.id, list_id, 'list']
|
[target_account.id, list_id, 'list']
|
||||||
end
|
end
|
||||||
ActivityPub::AccountBackfillWorker.perform_async(target_account.id) if is_first_follow & ActivityPub::AccountBackfillService.ENABLED
|
ActivityPub::AccountBackfillWorker.perform_async(target_account.id) if is_first_follow & ActivityPub::AccountBackfillService::ENABLED
|
||||||
end
|
end
|
||||||
|
|
||||||
destroy!
|
destroy!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user