@doc fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 28 Oct 2020 16:09:38 +0000 (19:09 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 28 Oct 2020 16:09:38 +0000 (19:09 +0300)
lib/pleroma/web/static_fe/static_fe_controller.ex

index 76b82589f4192f32d4aeac27ea337dc8838b0a8e..bdec0897a6dac228a3916fae3a8630ae770628ea 100644 (file)
@@ -19,7 +19,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
 
   @page_keys ["max_id", "min_id", "limit", "since_id", "order"]
 
-  @doc "Renders requested local public activity"
+  @doc "Renders requested local public activity or public activities of requested user"
   def show(%{assigns: %{notice_id: notice_id}} = conn, _params) do
     with %Activity{local: true} = activity <-
            Activity.get_by_id_with_object(notice_id),
@@ -46,7 +46,6 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
     end
   end
 
-  @doc "Renders public activities of requested user"
   def show(%{assigns: %{username_or_id: username_or_id}} = conn, params) do
     with {_, %User{local: true} = user} <-
            {:fetch_user, User.get_cached_by_nickname_or_id(username_or_id)},