1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.StaticFE.StaticFEController do
6 use Pleroma.Web, :controller
8 alias Pleroma.Web.StaticFE.ActivityRepresenter
12 def show_notice(conn, %{"notice_id" => notice_id}) do
13 with {:ok, data} <- ActivityRepresenter.represent(notice_id) do
15 |> put_layout(:static_fe)
17 |> put_view(Pleroma.Web.StaticFE.StaticFEView)
18 |> render("notice.html", data)
27 def show(%{path_info: ["notice", notice_id]} = conn, _params),
28 do: show_notice(conn, %{"notice_id" => notice_id})
30 # Fallback for unhandled types
31 def show(conn, _params) do