Add allow_other_host in redirects which may go outside app (#24252)

This commit is contained in:
Matt Jankowski
2023-03-25 19:38:32 -04:00
committed by GitHub
parent e63524f457
commit e633b26f4f
3 changed files with 3 additions and 3 deletions

View File

@ -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