aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-06-18 19:04:46 +0200
committerRoger Braun <roger@rogerbraun.net>2017-06-18 19:04:46 +0200
commit6cac8e3c8b866c71e96ade110b7b1e222dd78751 (patch)
tree74ef4b5e47170384b5d13a34cd69252cacef1aa6 /lib
parent5ff4a5eee3e76ba05dc80868350bb7b3698113d0 (diff)
downloadpleroma-6cac8e3c8b866c71e96ade110b7b1e222dd78751.tar.gz
Downcase tags coming in through the TwAPI.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/formatter.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex
index 50c4279f6..a8149b7b3 100644
--- a/lib/pleroma/formatter.ex
+++ b/lib/pleroma/formatter.ex
@@ -9,7 +9,7 @@ defmodule Pleroma.Formatter do
@tag_regex ~r/\#\w+/u
def parse_tags(text) do
Regex.scan(@tag_regex, text)
- |> Enum.map(fn (["#" <> tag = full_tag]) -> {full_tag, tag} end)
+ |> Enum.map(fn (["#" <> tag = full_tag]) -> {full_tag, String.downcase(tag)} end)
end
def parse_mentions(text) do