Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
ccc2f608
Unverified
Commit
ccc2f608
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Redirect from old authorize_follow path (#8584)
To avoid error due to nginx proxy caching the webfinger response
parent
b65a9b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/routes.rb
+1
-0
config/routes.rb
with
1 addition
and
0 deletions
+1
-0
config/routes.rb
+
1
-
0
View file @
ccc2f608
...
...
@@ -39,6 +39,7 @@ Rails.application.routes.draw do
}
get
'/users/:username'
,
to:
redirect
(
'/@%{username}'
),
constraints:
lambda
{
|
req
|
req
.
format
.
nil?
||
req
.
format
.
html?
}
get
'/authorize_follow'
,
to:
redirect
{
|
_
,
request
|
"/authorize_interaction?
#{
request
.
params
.
to_query
}
"
}
resources
:accounts
,
path:
'users'
,
only:
[
:show
],
param: :username
do
resources
:stream_entries
,
path:
'updates'
,
only:
[
:show
]
do
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets