Count gifvs as videos in attachment counts

This commit is contained in:
Essem 2023-11-09 23:04:57 -06:00
parent 5cf7306ed5
commit 19f2dabbba
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -22,7 +22,7 @@ module StatusesHelper
attachments = { image: 0, video: 0, audio: 0 } attachments = { image: 0, video: 0, audio: 0 }
status.ordered_media_attachments.each do |media| status.ordered_media_attachments.each do |media|
if media.video? if media.video? || media.gifv?
attachments[:video] += 1 attachments[:video] += 1
elsif media.audio? elsif media.audio?
attachments[:audio] += 1 attachments[:audio] += 1