diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-25 19:38:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 00:38:32 +0100 |
commit | e633b26f4f69c068f6479e09254a6ae2277b73dd (patch) | |
tree | 0267898f58e46803e447f6d7f47c2de1b2556025 /app/controllers/statuses_controller.rb | |
parent | e63524f45792af83cf802270c3beebc76bada645 (diff) |
Add allow_other_host in redirects which may go outside app (#24252)
Diffstat (limited to 'app/controllers/statuses_controller.rb')
-rw-r--r-- | app/controllers/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index 0e0783b4b..fcb3cd4fa 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -70,6 +70,6 @@ class StatusesController < ApplicationController end def redirect_to_original - redirect_to ActivityPub::TagManager.instance.url_for(@status.reblog) if @status.reblog? + redirect_to(ActivityPub::TagManager.instance.url_for(@status.reblog), allow_other_host: true) if @status.reblog? end end |