For remote notices, redirect to the original instead of 404.
authorPhil Hagelberg <phil@hagelb.org>
Tue, 12 Nov 2019 01:16:44 +0000 (17:16 -0800)
committerPhil Hagelberg <phil@hagelb.org>
Tue, 12 Nov 2019 17:40:29 +0000 (09:40 -0800)
commit62f3a93049649dee0ccd7b883887be2fd343fb3e
tree3bba8ee493ec32a3f612c4f0011f6f0cc63b4640
parentfb090b748ab7ec3740008017f419e210405e2633
For remote notices, redirect to the original instead of 404.

We shouldn't treat these like local statuses, but I don't think a 404
is the right choice either here, because within pleroma-fe, these are
valid URLs. So with remote notices you have the awkward situation
where clicking a link will behave differently depending on whether you
open it in a new tab or not; the new tab will 404 if it hits static-fe.

This new redirecting behavior should improve that situation.
lib/pleroma/web/static_fe/static_fe_controller.ex
test/web/static_fe/static_fe_controller_test.exs