about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index c134926c8..5410c3098 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -386,15 +386,16 @@ class Status < ApplicationRecord
             .where(account_id: Account.local)
             .reorder(:status_id)
             .distinct
+
+          # We need to find a new way to do this because it's much too slow.
+
           # grab the stuff we boosted
-          boost_query = query.reblogs.select(:reblog_of_id)
-            .reorder(nil)
-            .distinct
+          #boost_query = query.reblogs.select(:reblog_of_id)
+          #  .reorder(nil)
+          #  .distinct
           # map those ids to actual statuses
-          # THIS QUERY IS EXPENSIVE AS FUCK!!!!!!!
-          # but it does the job
-          query = Status.where(id: boost_query)
-            .or(where(id: fav_query))
+
+          query = Status.where(id: fav_query)
             .without_replies
             .with_public_visibility
         end