about summary refs log tree commit diff
path: root/app/helpers/domain_control_helper.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-11-24 00:36:35 +0100
committerGitHub <noreply@github.com>2019-11-24 00:36:35 +0100
commit2448568d341dcf288bf004826666ab9010601b47 (patch)
tree2df762b1b6d46f64f97991a70267d96a4509cdd1 /app/helpers/domain_control_helper.rb
parent55f5e81a9dc4c6cede5d43e549061be2ea9be614 (diff)
parent271b2e68f33e8086eb4a1ee44694fcd2ecd7ab07 (diff)
Merge pull request #1247 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/helpers/domain_control_helper.rb')
-rw-r--r--app/helpers/domain_control_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb
index 067b2c2cd..ac60cad29 100644
--- a/app/helpers/domain_control_helper.rb
+++ b/app/helpers/domain_control_helper.rb
@@ -6,7 +6,7 @@ module DomainControlHelper
 
     domain = begin
       if uri_or_domain.include?('://')
-        Addressable::URI.parse(uri_or_domain).domain
+        Addressable::URI.parse(uri_or_domain).host
       else
         uri_or_domain
       end