ostatus: fix representing external objects
[akkoma] / lib / pleroma / formatter.ex
index 26bb17377094340d69a0280086cc146ee4e85f83..1a5c07c8a61e73edba5ac88297090fd69aa28cbe 100644 (file)
@@ -116,8 +116,8 @@ defmodule Pleroma.Formatter do
       subs ++
         Enum.map(mentions, fn {match, %User{ap_id: ap_id, info: info}, uuid} ->
           ap_id =
-            if is_binary(info["source_data"]["url"]) do
-              info["source_data"]["url"]
+            if is_binary(info.source_data["url"]) do
+              info.source_data["url"]
             else
               ap_id
             end