Count gifvs as videos in attachment counts
This commit is contained in:
parent
5cf7306ed5
commit
19f2dabbba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue