瀏覽代碼

Merge branch 'patch-1' into 'develop'

Fix finmoji title attribute.

See merge request !23
tags/v0.9.9
lambadalambda 6 年之前
父節點
當前提交
8004ee8ccf
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      lib/pleroma/formatter.ex

+ 1
- 1
lib/pleroma/formatter.ex 查看文件

@@ -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

Loading…
取消
儲存