]> cat aescling's git repositories - mastodon.git/commitdiff
Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388)
authorThibG <thib@sitedethib.com>
Fri, 2 Jun 2017 20:21:36 +0000 (22:21 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 2 Jun 2017 20:21:36 +0000 (22:21 +0200)
This fixes #2375.

app/controllers/well_known/host_meta_controller.rb
app/controllers/well_known/webfinger_controller.rb

index 82bfd3575a4cd952082a9ef469f180cee89f8913..40f96eaa25877518473c8fc002394466c910301d 100644 (file)
@@ -2,6 +2,8 @@
 
 module WellKnown
   class HostMetaController < ApplicationController
+    include RoutingHelper
+
     def show
       @webfinger_template = "#{webfinger_url}?resource={uri}"
 
index 84f3015e87d4d1ddee98ea2ed6105a1537c018c4..1c27b2b184982d43ef2fe288fb4af59bad4632de 100644 (file)
@@ -2,6 +2,8 @@
 
 module WellKnown
   class WebfingerController < ApplicationController
+    include RoutingHelper
+
     def show
       @account = Account.find_local!(username_from_resource)
       @canonical_account_uri = @account.to_webfinger_s