mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 04:31:41 +00:00
fix: el hostname puede estar en varios lados
This commit is contained in:
parent
c02a976206
commit
9b401f8c12
1 changed files with 4 additions and 1 deletions
|
@ -67,9 +67,12 @@ class SocialInbox
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# El hostname puede estar en varios lados...
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
def hostname
|
def hostname
|
||||||
@hostname ||=
|
@hostname ||=
|
||||||
site.config.dig('activity_pub', 'hostname') || site.hostname
|
site.config.dig('activity_pub', 'hostname') || site.config['hostname'] || site.hostname
|
||||||
end
|
end
|
||||||
|
|
||||||
# Genera una URI dentro de este sitio
|
# Genera una URI dentro de este sitio
|
||||||
|
|
Loading…
Reference in a new issue