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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user