diff --git a/lib/philomena/scrapers/inkbunny.ex b/lib/philomena/scrapers/inkbunny.ex index 5374dd65..34508c09 100644 --- a/lib/philomena/scrapers/inkbunny.ex +++ b/lib/philomena/scrapers/inkbunny.ex @@ -13,6 +13,7 @@ defmodule Philomena.Scrapers.Inkbunny do json = Jason.decode!(body) [submission] = json["submissions"] + tags = submission["keywords"]["keyword_name"] images = for x <- submission["files"] do %{ @@ -23,6 +24,7 @@ defmodule Philomena.Scrapers.Inkbunny do %{ source_url: url, + tags: tags, author_name: submission["username"], description: submission["description"], images: images diff --git a/lib/philomena_web/views/image_view.ex b/lib/philomena_web/views/image_view.ex index 9f0ad077..a433a676 100644 --- a/lib/philomena_web/views/image_view.ex +++ b/lib/philomena_web/views/image_view.ex @@ -315,7 +315,7 @@ defmodule PhilomenaWeb.ImageView do "pbs.twimg.com", "twimg.com" ] -> - "fab fa-twitter" + "fa-brands fa-twitter" u when u in [ @@ -450,6 +450,9 @@ defmodule PhilomenaWeb.ImageView do u when u in ["etsy.com", "www.etsy.com"] -> "fab fa-etsy" + + u when u in ["derpibooru.org", "derpicdn.net"] -> + "fa-solid fa-horse-head" link -> cond do