Commit 5ff4a5ee authored by lain's avatar lain
Browse files

Save incoming tags as lowercase.

parent fa828229
......@@ -149,7 +149,7 @@ defmodule Pleroma.Web.OStatus do
def get_tags(entry) do
:xmerl_xpath.string('//category', entry)
|> (category) -> string_from_xpath("/category/@term", category) end)
|> (category) -> string_from_xpath("/category/@term", category) |> String.downcase end)
def maybe_update(doc, user) do
......@@ -42,7 +42,7 @@
<title>New note by lambadalambda</title>
<content type="html">Will it blend?</content>
<category term="nsfw"/>
<category term="Nsfw"/>
<link rel="alternate" type="text/html" href=""/>
<status_net notice_id="1967725"></status_net>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment