From: eal Date: Mon, 11 Dec 2017 16:14:33 +0000 (+0200) Subject: Add a bunch of useless HTML to mentions. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b00e230760891d97c5d8c68e9e5c63b1545f10e9;p=akkoma Add a bunch of useless HTML to mentions. --- diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 1a23b1ad2..2687d6663 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -91,7 +91,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do Enum.reduce(mentions, step_one, fn ({match, %User{ap_id: ap_id}, uuid}, text) -> short_match = String.split(match, "@") |> tl() |> hd() - String.replace(text, uuid, "@#{short_match}") + String.replace(text, uuid, "@#{short_match}") end) end