|
|
@ -46,6 +46,7 @@ module AccountInteractions
|
|
|
|
has_many :muting, -> { order('mutes.id desc') }, through: :mute_relationships, source: :target_account
|
|
|
|
has_many :muting, -> { order('mutes.id desc') }, through: :mute_relationships, source: :target_account
|
|
|
|
has_many :conversation_mutes, dependent: :destroy
|
|
|
|
has_many :conversation_mutes, dependent: :destroy
|
|
|
|
has_many :domain_blocks, class_name: 'AccountDomainBlock', dependent: :destroy
|
|
|
|
has_many :domain_blocks, class_name: 'AccountDomainBlock', dependent: :destroy
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def follow!(other_account)
|
|
|
|
def follow!(other_account)
|
|
|
|
active_relationships.find_or_create_by!(target_account: other_account)
|
|
|
|
active_relationships.find_or_create_by!(target_account: other_account)
|
|
|
@ -124,4 +125,3 @@ module AccountInteractions
|
|
|
|
status.proper.reblogs.where(account: self).exists?
|
|
|
|
status.proper.reblogs.where(account: self).exists?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|