Pleroma.User: Fix syntax and user.ap_id call
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 2 Mar 2019 05:57:28 +0000 (06:57 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 2 Mar 2019 05:57:28 +0000 (06:57 +0100)
lib/pleroma/user.ex

index 447beb25b5949c4e67e6e9288caa9d6d4f74b065..a9592df6d114cc866d149abe29050a7c2a1b9b98 100644 (file)
@@ -1204,13 +1204,13 @@ defmodule Pleroma.User do
       end)
 
     # TODO: get profile URLs other than user.ap_id
-    profile_urls = [user[:ap_id]]
+    profile_urls = [user.ap_id]
 
     bio
-    |> CommonUtils.format_input("text/plain", %{
+    |> CommonUtils.format_input("text/plain", [
       mentions_format: :full,
       rel: &RelMe.maybe_put_rel_me(&1, profile_urls)
-    })
+    ])
     |> elem(0)
     |> Formatter.emojify(emoji)
   end