allow items to just be an array
This commit is contained in:
parent
a3d4e61459
commit
0ad42bddee
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ defp fix_replies(%{"replies" => %{"first" => first}} = data) do
|
|||
end
|
||||
end
|
||||
|
||||
defp fix_replies(%{"replies" => %{"items" => replies}} = data) when is_list(replies),
|
||||
do: Map.put(data, "replies", replies)
|
||||
|
||||
defp fix_replies(data), do: Map.delete(data, "replies")
|
||||
|
||||
defp remote_mention_resolver(
|
||||
|
|
Loading…
Reference in a new issue