sources: add rule34.xxx, safebooru.org, and tbib.org site icons.

Fixes these sources incorrectly using the Gelbooru site icon.
This commit is contained in:
evazion
2022-11-28 15:56:54 -06:00
parent 937e6df7f7
commit 096efdee7b
5 changed files with 16 additions and 0 deletions

View File

@@ -138,6 +138,8 @@ module IconHelper
Redbubble
Reddit
Rule34.us
Rule34.xxx
Safebooru
Sakura.ne.jp
Sankaku\ Complex
Shopee
@@ -154,6 +156,7 @@ module IconHelper
SubscribeStar
Suzuri
Tapas
TBIB
TeePublic
Telegram
The\ Interviews

View File

@@ -75,6 +75,19 @@ class Source::URL::Gelbooru < Source::URL
end
end
def site_name
case domain
in "rule34.xxx"
"Rule34.xxx"
in "tbib.org"
"TBIB"
in "gelbooru.com"
"Gelbooru"
in "safebooru.org"
"Safebooru"
end
end
def image_url?
image_type.present?
end