5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 00:36:22 +00:00

fix: obtener correctamente los dominios con www #10452

This commit is contained in:
f 2023-03-16 13:17:39 -03:00
parent ebccbc5b46
commit bf45707be4

View file

@ -69,10 +69,9 @@ module Api
end end
end end
# Todos los dominios con WWW habilitado
def www_names def www_names
Site.where(contact: true) Site.where(id: DeployWww.all.pluck(:site_id)).select("'www.' || name as name").map(&:name).map do |name|
.or(Site.where(colaboracion_anonima: true))
.select("'www.' || name as name").map(&:name).map do |name|
canonicalize name canonicalize name
end end
end end