From: William Pitcock Date: Sun, 5 Aug 2018 00:35:29 +0000 (+0000) Subject: formatter: preserve case of hashtags X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0ee29994a5506420f9b1c26568ad15a5d7db3d6e;p=akkoma formatter: preserve case of hashtags when generating hashtag links, we used the casefolded version that we use in the link URLs, instead of the original version. accordingly, adjust the formatter to use the original text for the links, while keeping the casefolded version for the URLs. --- diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 0aaf21538..d199c9243 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -244,8 +244,8 @@ defmodule Pleroma.Formatter do subs = subs ++ - Enum.map(tags, fn {_, tag, uuid} -> - url = "" + Enum.map(tags, fn {tag_text, tag, uuid} -> + url = "" {uuid, url} end)