5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-19 02:16:22 +00:00

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

This commit is contained in:
f 2023-03-28 16:36:18 -03:00
commit afb485c264
2 changed files with 2 additions and 2 deletions

View file

@ -8,6 +8,6 @@ class HiddenServiceClient
base_uri ENV.fetch('HIDDEN_SERVICE', 'http://tor:3000')
def create(name)
self.class.get("/#{name}")
self.class.get("/#{name}").body
end
end

View file

@ -25,7 +25,7 @@ class DeployHiddenService < DeployWww
def create_hidden_service!
onion_address = HiddenServiceClient.new.create(site.name)
if onion_address =~ ONION_RE
if ONION_RE =~ onion_address
self.onion = onion_address
usuarie = GitAuthor.new email: "tor@#{Site.domain}", name: 'Tor'