activitypub: normalize the actor to ensure we have its URI
[akkoma] / lib / pleroma / formatter.ex
index a708a275e881fd431de67470b7a091f9e6dcc4b5..456416fbdff4eecc6127ee9ea36bbd486cc6ecd7 100644 (file)
@@ -169,8 +169,11 @@ defmodule Pleroma.Formatter do
       subs ++
         Enum.map(links, fn {uuid, url} ->
           {:safe, link} = Phoenix.HTML.Link.link(url, to: url)
-          link = link
-          |> IO.iodata_to_binary
+
+          link =
+            link
+            |> IO.iodata_to_binary()
+
           {uuid, link}
         end)