about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-04-30 21:49:24 +0900
committerMatt Jankowski <mjankowski@thoughtbot.com>2017-04-30 08:49:24 -0400
commita6788662b09164cfbaf1cebe6c8abc5123452285 (patch)
tree695c32806c43416f16aea7dd73c507ed42799ca2 /app/models
parent4a5f73c8aef7500a0efe7d800447e288674bf54a (diff)
Revert "Use PostgreSQL inheritance for blocks and mutes (#2520)" (#2634)
This reverts commit 5135d609b774b177d3d3894b176a822d86b73d3c.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 89710b66c..19f8ca365 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -87,11 +87,11 @@ class Account < ApplicationRecord
   end
 
   def block!(other_account)
-    block_relationships.where(target_account: other_account).first_or_create!(target_account: other_account, block: true)
+    block_relationships.where(target_account: other_account).first_or_create!(target_account: other_account)
   end
 
   def mute!(other_account)
-    mute_relationships.where(target_account: other_account).first_or_create!(target_account: other_account, block: false)
+    mute_relationships.where(target_account: other_account).first_or_create!(target_account: other_account)
   end
 
   def unfollow!(other_account)