about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-16 07:23:52 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-16 07:23:52 -0600
commit487c945d160e9349579bf541147c949f8bca3c46 (patch)
tree9b39efd7e0c8b718a90a474e6cc037aadef45dbb
parent6abae51e47753cc80b440c4234c14cd8232e235f (diff)
Searches now work on `following` scope.
-rw-r--r--app/models/status.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 045a4a31a..29c4f6bd1 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -344,9 +344,8 @@ class Status < ApplicationRecord
         term = term.split(nil, 2)[1]
         query = account.statuses
       else
-        mutual_account_ids = account.following_ids & account.follower_ids
         query = Status.where(account_id: account.id)
-          .or(Status.where(account_id: mutual_account_ids, visibility: [:private, :local, :unlisted]))
+          .or(Status.where(account_id: account.following, visibility: [:private, :local, :unlisted]))
           .or(Status.where(id: account.mentions.select(:status_id)))
       end
       return none if term.blank? || term.length < 3