discord: show favcount in post embeds.

This commit is contained in:
evazion
2021-03-18 22:54:45 -05:00
parent d5903b61c4
commit cebfe3308e

View File

@@ -51,7 +51,7 @@ class DiscordSlashCommand
def embed_footer
dimensions = "#{post.image_width}x#{post.image_height}"
file_size = post.file_size.to_s(:human_size, precision: 4)
text = "Rating: #{post.rating.upcase} | #{dimensions} (#{file_size} #{post.file_ext})"
text = "#{post.fav_count} ❤ | Rating: #{post.rating.upcase} | #{dimensions} (#{file_size} #{post.file_ext})"
{ text: text }
end