about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-12-15 17:41:20 +0100
committerGitHub <noreply@github.com>2022-12-15 17:41:20 +0100
commitfb1d9789dba288599e05ba813af0c61f484e205c (patch)
tree6c86f7c4dc2f423dfd5d0f87f7757313a8ae6415 /app/helpers
parent8a56587d62d08606e5ed11eb1b93e238cf5aa2fe (diff)
Fix attachment rendering of edited posts in OpenGraph (#22270)
Fixes #22241
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/statuses_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/statuses_helper.rb b/app/helpers/statuses_helper.rb
index 488eabeec..d1e3fddaf 100644
--- a/app/helpers/statuses_helper.rb
+++ b/app/helpers/statuses_helper.rb
@@ -21,7 +21,7 @@ module StatusesHelper
   def media_summary(status)
     attachments = { image: 0, video: 0, audio: 0 }
 
-    status.media_attachments.each do |media|
+    status.ordered_media_attachments.each do |media|
       if media.video?
         attachments[:video] += 1
       elsif media.audio?