mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Fix attachment rendering of edited posts in OpenGraph (#22270)
Fixes #22241
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user