From: William Pitcock Date: Sun, 27 May 2018 12:53:14 +0000 (+0000) Subject: formatter: use class='mention' on links to user profiles X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a8df7fc69041e8d7a6ed71621159d2f7487e1ce7;p=akkoma formatter: use class='mention' on links to user profiles helps mastodon frontend and apps have better context: https://mastodon.social/users/Gargron/statuses/100101267352899379 --- diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 53e2c204f..d23a284ca 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -200,7 +200,7 @@ defmodule Pleroma.Formatter do ap_id = info["source_data"]["url"] || ap_id short_match = String.split(match, "@") |> tl() |> hd() - {uuid, "@#{short_match}"} + {uuid, "@#{short_match}"} end) {subs, uuid_text}