Update baraag.ex

This commit is contained in:
Chaska 2024-05-07 02:29:44 -05:00 committed by GitHub
parent aa322c103d
commit e7c54e5c01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,7 @@ defmodule Philomena.Scrapers.Baraag do
api_url = "https://baraag.net/api/v1/statuses/#{status_id}"
{:ok, %Tesla.Env{status: 200, body: body}} = Philomena.Http.get(api_url)
json = Jason.decode!(body)
toot = json
toot = Jason.decode!(body)
images =
Enum.map(toot["media_attachments"], fn p ->