Skip to content

Redirect object/activity ID to notice in static-fe

technomancy requested to merge technomancy/pleroma:static-fe-object-id into develop

It was noted in #1412 (closed) that there are a few routes that static-fe currently 404s on which are handled by pleroma-fe.

This adds support for /objects/:uuid as well as /activities/:uuid.

I'm not totally sure that redirect(conn, to: "/notice/#{activity.id}") is the right way to do the redirect, but using Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, activity) doesn't work since that's an absolute URL, and redirect just wants a path.

There's also maybe a little too much similarity between the two new show functions; maybe they should be collapsed into one?

Edited by technomancy

Merge request reports