Add more tests for ActivityPub controllers (#13585)

This commit is contained in:
Eugen Rochko
2020-05-03 16:30:36 +02:00
committed by GitHub
parent a1062df1e1
commit 988b0493fe
19 changed files with 1320 additions and 147 deletions

View File

@ -46,7 +46,7 @@ class StatusesController < ApplicationController
end
def embed
return not_found if @status.hidden?
return not_found if @status.hidden? || @status.reblog?
expires_in 180, public: true
response.headers['X-Frame-Options'] = 'ALLOWALL'