1
0
Fork 1
forked from fedi/mastodon

Fix attachment rendering of edited posts in OpenGraph (#22270)

Fixes #22241
This commit is contained in:
Claire 2022-12-15 17:41:20 +01:00 committed by talon
parent 2adfe8da9e
commit 27cf6272cd

View file

@ -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?