mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:16:22 +00:00
fix: obtener correctamente los dominios con www #10452
This commit is contained in:
parent
ebccbc5b46
commit
bf45707be4
1 changed files with 4 additions and 5 deletions
|
@ -69,12 +69,11 @@ module Api
|
|||
end
|
||||
end
|
||||
|
||||
# Todos los dominios con WWW habilitado
|
||||
def www_names
|
||||
Site.where(contact: true)
|
||||
.or(Site.where(colaboracion_anonima: true))
|
||||
.select("'www.' || name as name").map(&:name).map do |name|
|
||||
canonicalize name
|
||||
end
|
||||
Site.where(id: DeployWww.all.pluck(:site_id)).select("'www.' || name as name").map(&:name).map do |name|
|
||||
canonicalize name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue