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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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