Fix mutes_controller error and incorrect statuses_controller report (#3202)

This commit fixes a regression in commit
f554807563.
This commit is contained in:
Akihiko Odaki 2017-05-21 20:32:13 +09:00 committed by Eugen Rochko
parent 860f408475
commit 2af5cd96fe
3 changed files with 12 additions and 10 deletions

View file

@ -50,6 +50,8 @@ module AccountInteractions
# Mute relationships
has_many :mute_relationships, class_name: 'Mute', foreign_key: 'account_id', dependent: :destroy
has_many :muting, -> { order('mutes.id desc') }, through: :mute_relationships, source: :target_account
has_many :muted_by_relationships, class_name: 'Mute', foreign_key: :target_account_id, dependent: :destroy
has_many :muted_by, -> { order('mutes.id desc') }, through: :muted_by_relationships, source: :account
has_many :conversation_mutes, dependent: :destroy
has_many :domain_blocks, class_name: 'AccountDomainBlock', dependent: :destroy
end