Fix finmoji title attribute.
authorエーロ <eal@waifu.club>
Sun, 9 Jul 2017 15:00:02 +0000 (11:00 -0400)
committerエーロ <eal@waifu.club>
Sun, 9 Jul 2017 15:00:02 +0000 (11:00 -0400)
lib/pleroma/formatter.ex

index 179c33560412469e3ef4feab55abfffa79259584..a7e3f6ab8daed07defae451e44090a01feb6b56f 100644 (file)
@@ -91,7 +91,7 @@ defmodule Pleroma.Formatter do
     ]
 
     Enum.reduce(emoji_list, text, fn (emoji, text) ->
-      String.replace(text, ":#{String.replace(emoji, "_", "")}:", "<img height='32px' width='32px' alt='#{emoji}' title='#{emoji}' src='#{Pleroma.Web.Endpoint.static_url}/finmoji/128px/#{emoji}-128.png' />")
+      String.replace(text, ":#{String.replace(emoji, "_", "")}:", "<img height='32px' width='32px' alt='#{emoji}' title='#{String.replace(emoji, "_", "")}' src='#{Pleroma.Web.Endpoint.static_url}/finmoji/128px/#{emoji}-128.png' />")
     end)
   end
 end