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

fix: el hostname puede estar en varios lados

This commit is contained in:
f 2024-02-22 18:13:53 -03:00
parent c02a976206
commit 9b401f8c12
No known key found for this signature in database

View file

@ -67,9 +67,12 @@ class SocialInbox
end
end
# El hostname puede estar en varios lados...
#
# @return [String]
def hostname
@hostname ||=
site.config.dig('activity_pub', 'hostname') || site.hostname
site.config.dig('activity_pub', 'hostname') || site.config['hostname'] || site.hostname
end
# Genera una URI dentro de este sitio