From 145546e52a44c57993ca49d4abd4646193c1e3bc Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 21 Mar 2018 00:51:47 +0000 Subject: [PATCH] common api: format hashtags in the same way as we format mentions --- lib/pleroma/web/common_api/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 30089f553..eace3c8a1 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 = "#" + url = "" String.replace(text, full, url) end) end