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

Fixes #22241
local
Claire 1 year ago committed by GitHub
parent 8a56587d62
commit fb1d9789db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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?

Loading…
Cancel
Save