debug
This commit is contained in:
parent
e416469a40
commit
bf9f68b681
|
@ -1116,7 +1116,14 @@ def suggestions(%{assigns: %{user: user}} = conn, _) do
|
||||||
data2 =
|
data2 =
|
||||||
Enum.slice(data, 0, 40)
|
Enum.slice(data, 0, 40)
|
||||||
|> Enum.map(fn x ->
|
|> Enum.map(fn x ->
|
||||||
Map.put(x, "id", User.get_or_fetch(x["acct"]).id)
|
Map.put(
|
||||||
|
x,
|
||||||
|
"id",
|
||||||
|
case User.get_or_fetch(x["acct"]) do
|
||||||
|
%{id: id} -> id
|
||||||
|
_ -> 0
|
||||||
|
end
|
||||||
|
)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|
|
Loading…
Reference in New Issue