common api: enable tag linking in markdown mode
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 14 Oct 2018 20:36:11 +0000 (20:36 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 14 Oct 2018 20:36:11 +0000 (20:36 +0000)
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