Commit 728b8ff5 authored by Wim Vanderbauwhede's avatar Wim Vanderbauwhede

nm

parent 93917327
Pipeline #3352 failed with stages
in 2 minutes and 1 second
......@@ -66,10 +66,10 @@ defmodule Pleroma.Bots.Parser do
end
str="<span><a href='https://mbp.limited.systems/users/drone'>@<span>drone</span></a></span> PollBot: wim {&quot;answers&quot;:{&quot;1&quot;:[&quot;red&quot;,0],&quot;2&quot;:[&quot;green&quot;,0],&quot;3&quot;:[&quot;blue&quot;,0]},&quot;closed&quot;:false,&quot;closes&quot;:0,&quot;hashtag&quot;:&quot;<a href='https://mbp.limited.systems/tag/favcolourpoll' rel='tag'>#favcolourpoll</a>&quot;,&quot;onlyfor&quot;:[],&quot;owner&quot;:&quot;<a href=\"https://mbp.limited.systems/users/wim&quot;\">https://mbp.limited.systems/users/wim&quot;</a>;,&quot;question&quot;:&quot;text, e.g. what is your fav colour&quot;}"
str_ = Pleroma.Bots.Parser.strip_tags(str)
IO.puts(str_)
#str="<span><a href='https://mbp.limited.systems/users/drone'>@<span>drone</span></a></span> PollBot: wim {&quot;answers&quot;:{&quot;1&quot;:[&quot;red&quot;,0],&quot;2&quot;:[&quot;green&quot;,0],&quot;3&quot;:[&quot;blue&quot;,0]},&quot;closed&quot;:false,&quot;closes&quot;:0,&quot;hashtag&quot;:&quot;<a href='https://mbp.limited.systems/tag/favcolourpoll' rel='tag'>#favcolourpoll</a>&quot;,&quot;onlyfor&quot;:[],&quot;owner&quot;:&quot;<a href=\"https://mbp.limited.systems/users/wim&quot;\">https://mbp.limited.systems/users/wim&quot;</a>;,&quot;question&quot;:&quot;text, e.g. what is your fav colour&quot;}"
#str_ = Pleroma.Bots.Parser.strip_tags(str)
#IO.puts(str_)
str__ = Pleroma.Bots.Parser.replace_entities(str_)
IO.puts(str__)
#str__ = Pleroma.Bots.Parser.replace_entities(str_)
#IO.puts(str__)
#"""
......@@ -75,7 +75,7 @@ defmodule Pleroma.Web.OStatus do
e ->
Logger.error("Error occured while handling activity")
Logger.error("Handling #{verb}")
#Logger.error(xml_string)
Logger.error(xml_string)
Logger.error(inspect(e))
nil
end
......
Markdown is supported
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