Fetch the same data from json webfinger as from xml webfinger.
[akkoma] / lib / xml_builder.ex
index c6d1449036705084f785c056b3dfce32f0ee703e..52358c437c78ed9ba016448e8acb4ce3a6db681c 100644 (file)
@@ -37,6 +37,6 @@ defmodule Pleroma.XmlBuilder do
       "#{attribute}=\"#{value}\""
     end |> Enum.join(" ")
 
-    [tag, attributes_string] |> Enum.join(" ") |> String.strip
+    [tag, attributes_string] |> Enum.join(" ") |> String.trim
   end
 end