From cebfe3308e92b874aa1b6a4f6f53752d64bdf8ac Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 18 Mar 2021 22:54:45 -0500 Subject: [PATCH] discord: show favcount in post embeds. --- app/logical/discord_slash_command/post_embed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/discord_slash_command/post_embed.rb b/app/logical/discord_slash_command/post_embed.rb index 59d1065b8..e6570c409 100644 --- a/app/logical/discord_slash_command/post_embed.rb +++ b/app/logical/discord_slash_command/post_embed.rb @@ -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