diff options
author | kaniini <nenolod@gmail.com> | 2018-08-20 18:44:52 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-08-20 18:44:52 +0000 |
commit | c1b8a6a73bfd5f30d5a290b9700ed4d41064ce77 (patch) | |
tree | ab3d8842906fb4b0d02dbf09ea19f56c756dbb81 /lib | |
parent | 7266cc67ffa46564c26e4aa2924ed53f3d886ff2 (diff) | |
parent | c033d2004b8d5a8e2d5fd2553d6e20bad7bb57a5 (diff) | |
download | pleroma-c1b8a6a73bfd5f30d5a290b9700ed4d41064ce77.tar.gz |
Merge branch 'feature/formatter-consistent-hashtag-mentions' into 'develop'
formatter: consistent presentation of hashtags and mentions
See merge request pleroma/pleroma!280
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 30089f553..c7b0d7935 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -109,7 +109,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do |> Enum.sort_by(fn {tag, _} -> -String.length(tag) end) Enum.reduce(tags, text, fn {full, tag}, text -> - url = "#<a href='#{Pleroma.Web.base_url()}/tag/#{tag}' rel='tag'>#{tag}</a>" + url = "<a href='#{Pleroma.Web.base_url()}/tag/#{tag}' rel='tag'>##{tag}</a>" String.replace(text, full, url) end) end |