Skip to content
Snippets Groups Projects
Unverified Commit fb1d9789 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

Fixes #22241
parent 8a56587d
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment