Fix most User tests.
This commit is contained in:
parent
e7cd6e9739
commit
4c918392c6
4 changed files with 50 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue