Save incoming tags as lowercase.

This commit is contained in:
Roger Braun 2017-06-18 19:01:54 +02:00
commit 5ff4a5eee3
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ defmodule Pleroma.Web.OStatus do
def get_tags(entry) do
:xmerl_xpath.string('//category', entry)
|> Enum.map(fn (category) -> string_from_xpath("/category/@term", category) end)
|> Enum.map(fn (category) -> string_from_xpath("/category/@term", category) |> String.downcase end)
end
def maybe_update(doc, user) do