This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (
#2388
)
This
fixes
#2375
.
closed-social-v3
ThibG
7 years ago
committed by
Eugen Rochko
parent
18fe77084f
commit
d567a382e3
2 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/controllers/well_known/host_meta_controller.rb
+2
-0
app/controllers/well_known/webfinger_controller.rb
+ 2
- 0
app/controllers/well_known/host_meta_controller.rb
View File
@ -2,6 +2,8 @@
module
WellKnown
class
HostMetaController
<
ApplicationController
include
RoutingHelper
def
show
@webfinger_template
=
"
#{
webfinger_url
}
?resource={uri}
"
+ 2
- 0
app/controllers/well_known/webfinger_controller.rb
View 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
Write
Preview
Loading…
Cancel
Save