- conn
- |> put_resp_content_type("text/html")
- |> send_file(200, Pleroma.Plugs.InstanceStatic.file_path("index.html"))
+ # Only Create actvities have a map at object
+ if is_map(activity.data["object"]) do
+ Fallback.RedirectController.redirector_with_meta(conn, %{
+ activity: activity,
+ user: user
+ })
+ else
+ Fallback.RedirectController.redirector(conn, nil)
+ end