{link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, user})}}
{link, %{acc | mentions: MapSet.put(acc.mentions, {"@" <> nickname, user})}}
def hashtag_handler("#" <> tag = tag_text, _buffer, _opts, acc) do
tag = String.downcase(tag)
url = "#{Pleroma.Web.base_url()}/tag/#{tag}"
def hashtag_handler("#" <> tag = tag_text, _buffer, _opts, acc) do
tag = String.downcase(tag)
url = "#{Pleroma.Web.base_url()}/tag/#{tag}"
{link, %{acc | tags: MapSet.put(acc.tags, {tag_text, tag})}}
end
{link, %{acc | tags: MapSet.put(acc.tags, {tag_text, tag})}}
end