5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 04:36:21 +00:00

Merge branch 'issue-13163' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-19 18:05:41 -03:00
commit 000bcf6c81

View file

@ -80,7 +80,7 @@ class DeployDistributedPress < Deploy
# Devuelve las URLs de todos los protocolos
def urls
protocol_urls + gateway_urls
gateway_urls
end
private
@ -94,15 +94,6 @@ class DeployDistributedPress < Deploy
end || []
end
# @return [Array]
def protocol_urls
remote_info.dig(:distributed_press, :protocols)&.select do |_, enabled|
enabled
end&.map do |protocol, _|
"#{protocol}://#{site.hostname}"
end || []
end
# El cliente de la API
#
# TODO: cuando soportemos más, tiene que haber una relación entre