|
|
@ -51,13 +51,13 @@ class SuspendAccountService < BaseService
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def unmerge_from_home_timelines!
|
|
|
|
def unmerge_from_home_timelines!
|
|
|
|
@account.followers_for_local_distribution.find_each do |follower|
|
|
|
|
@account.followers_for_local_distribution.reorder(nil).find_each do |follower|
|
|
|
|
FeedManager.instance.unmerge_from_home(@account, follower)
|
|
|
|
FeedManager.instance.unmerge_from_home(@account, follower)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def unmerge_from_list_timelines!
|
|
|
|
def unmerge_from_list_timelines!
|
|
|
|
@account.lists_for_local_distribution.find_each do |list|
|
|
|
|
@account.lists_for_local_distribution.reorder(nil).find_each do |list|
|
|
|
|
FeedManager.instance.unmerge_from_list(@account, list)
|
|
|
|
FeedManager.instance.unmerge_from_list(@account, list)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -65,7 +65,7 @@ class SuspendAccountService < BaseService
|
|
|
|
def privatize_media_attachments!
|
|
|
|
def privatize_media_attachments!
|
|
|
|
attachment_names = MediaAttachment.attachment_definitions.keys
|
|
|
|
attachment_names = MediaAttachment.attachment_definitions.keys
|
|
|
|
|
|
|
|
|
|
|
|
@account.media_attachments.find_each do |media_attachment|
|
|
|
|
@account.media_attachments.reorder(nil).find_each do |media_attachment|
|
|
|
|
attachment_names.each do |attachment_name|
|
|
|
|
attachment_names.each do |attachment_name|
|
|
|
|
attachment = media_attachment.public_send(attachment_name)
|
|
|
|
attachment = media_attachment.public_send(attachment_name)
|
|
|
|
styles = MediaAttachment::DEFAULT_STYLES | attachment.styles.keys
|
|
|
|
styles = MediaAttachment::DEFAULT_STYLES | attachment.styles.keys
|
|
|
|