From 19f2dabbbaa4eb87b57bc354f7537b73c59540f7 Mon Sep 17 00:00:00 2001 From: Essem Date: Thu, 9 Nov 2023 23:04:57 -0600 Subject: [PATCH] Count gifvs as videos in attachment counts --- app/helpers/statuses_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/statuses_helper.rb b/app/helpers/statuses_helper.rb index 74ebe3dabc..98846d3973 100644 --- a/app/helpers/statuses_helper.rb +++ b/app/helpers/statuses_helper.rb @@ -22,7 +22,7 @@ module StatusesHelper attachments = { image: 0, video: 0, audio: 0 } status.ordered_media_attachments.each do |media| - if media.video? + if media.video? || media.gifv? attachments[:video] += 1 elsif media.audio? attachments[:audio] += 1