about summary refs log tree commit diff
path: root/app/controllers/accounts_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-09 19:06:13 +0100
committerGitHub <noreply@github.com>2020-12-09 19:06:13 +0100
commitb27d11dd3320cb005561f0bb1b81baecea8a7c43 (patch)
treedba9599f5416483c4a9fcad0002e5a2d6bcd4de1 /app/controllers/accounts_controller.rb
parent25f725d67a6d2542cd586ab7c56baca572eb4f88 (diff)
parent7d0e45a3be167d95cbc4d5f80fa989a9371802ae (diff)
Merge pull request #1472 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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