Merge branch 'feature/markdown-enable-tags' into 'develop'
authorkaniini <nenolod@gmail.com>
Sun, 14 Oct 2018 20:42:23 +0000 (20:42 +0000)
committerkaniini <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

index 667027c022d2ed11d5928d25d722b4e8b9b5ca7a..4cbbd0c7df6bee3a229f23ab7b15200833125b70 100644 (file)
@@ -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