projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e0c0355
)
Merge branch 'feature/markdown-enable-tags' into 'develop'
author
kaniini
<nenolod@gmail.com>
Sun, 14 Oct 2018 20:42:23 +0000
(20:42 +0000)
committer
kaniini
<nenolod@gmail.com>
Sun, 14 Oct 2018 20:42:23 +0000
(20:42 +0000)
common api: enable tag linking in markdown mode
Closes #322
See merge request pleroma/pleroma!376
lib/pleroma/web/common_api/utils.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/common_api/utils.ex
b/lib/pleroma/web/common_api/utils.ex
index 667027c022d2ed11d5928d25d722b4e8b9b5ca7a..4cbbd0c7df6bee3a229f23ab7b15200833125b70 100644
(file)
--- a/
lib/pleroma/web/common_api/utils.ex
+++ b/
lib/pleroma/web/common_api/utils.ex
@@
-126,6
+126,7
@@
defmodule Pleroma.Web.CommonAPI.Utils do
|> String.replace(~r/\r?\n/, "")
|> (&{[], &1}).()
|> Formatter.add_user_links(mentions)
+ |> Formatter.add_hashtag_links(tags)
|> Formatter.finalize()
end