about summary refs log tree commit diff
path: root/app/controllers/accounts_controller.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-12-07 10:11:37 -0600
committerStarfall <us@starfall.systems>2020-12-07 10:11:37 -0600
commite68391fbaaf409cc01f74c8cf7076520a43ae06e (patch)
tree212b6e373f91dec2dce0b2c33b0cb38b4c6087f0 /app/controllers/accounts_controller.rb
parent0f6d41052652c4fee87a19900795c8588d9a2174 (diff)
parent48bef17cc990afda95c4de657f7643c321e62650 (diff)
Merge remote-tracking branch 'vanilla/master' into main
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r--app/controllers/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index 052394ab4..dfe94af7d 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -82,7 +82,7 @@ class AccountsController < ApplicationController
   end
 
   def account_media_status_ids
-    @account.media_attachments.attached.reorder(nil).select(:status_id).distinct
+    @account.media_attachments.attached.reorder(nil).select(:status_id).group(:status_id)
   end
 
   def no_replies_scope