Add root favicons

This commit is contained in:
Donovan Daniels 2024-05-03 18:01:03 -05:00
parent 90c05547f6
commit ec0b5d6c3d
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
12 changed files with 23 additions and 10 deletions

View File

@ -46,6 +46,19 @@ module Websites
/^i\.oceanic\.ws/ => "/oceanic.ws/images",
%r{^yiff\.rest/Blep\.png$} => "/yiff.rest",
%r{^yiff\.rocks/mascots} => "/yiff.rocks",
# Favicons
%r{^balls\.butts-are\.cool/favicon\.ico} => "/butts-are.cool/custom/balls",
%r{^cocks\.butts-are\.cool/favicon\.ico} => "/butts-are.cool/custom/cocks",
%r{^knots\.butts-are\.cool/favicon\.ico} => "/butts-are.cool/custom/knots",
%r{^sheaths\.butts-are\.cool/favicon\.ico} => "/butts-are.cool/custom/sheaths",
%r{^(.*\.)?butts-are\.cool/favicon\.ico} => "/butts-are.cool",
%r{^(.*\.)?e621\.ws/favicon\.ico} => "/e621.ws",
%r{^(.*\.)?furry\.cool/favicon\.ico} => "/furry.cool",
%r{^(.*\.)?maidboye\.cafe/favicon\.ico} => "/maidboye.cafe",
%r{^(.*\.)?oceanic\.ws/favicon\.ico} => "/oceanic.ws",
%r{^(.*\.)?yiff\.media/favicon\.ico} => "/yiff.media",
%r{^(.*\.)?yiff\.rest/favicon\.ico} => "/yiff.media",
%r{^(.*\.)?yiff\.rocks/favicon\.ico} => "/yiff.media",
})
end
end

View File

@ -18,10 +18,10 @@ class DomainConstraint
private
def domain_matches?(request)
@domain.nil? || request.domain == @domain
request.domain == @domain
end
def subdomain_matches?(request)
@subdomain.nil? || request.subdomain == @subdomain
(@subdomain.nil? && request.subdomain.blank?) || request.subdomain == @subdomain
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
public/e621.ws/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB