Switch to Jason over Poison

This commit is contained in:
Mark Felder 2019-05-13 15:37:38 -05:00
commit 498bfdf403
6 changed files with 13 additions and 13 deletions

View file

@ -682,7 +682,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
"""
def fetch_ordered_collection(from, pages_left, acc \\ []) do
with {:ok, response} <- Tesla.get(from),
{:ok, collection} <- Poison.decode(response.body) do
{:ok, collection} <- Jason.decode(response.body) do
case collection["type"] do
"OrderedCollection" ->
# If we've encountered the OrderedCollection and not the page,