about summary refs log tree commit diff
path: root/app/models/status_mute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/status_mute.rb')
-rw-r--r--app/models/status_mute.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/status_mute.rb b/app/models/status_mute.rb
index 0d7f9ec78..223893604 100644
--- a/app/models/status_mute.rb
+++ b/app/models/status_mute.rb
@@ -11,6 +11,8 @@
 class StatusMute < ApplicationRecord
   include Cacheable
 
+  validates :account_id, uniqueness: { scope: :status_id }
+
   belongs_to :account, inverse_of: :status_mutes
   belongs_to :status, inverse_of: :mutes