Permit fetching statuses from API with nickname or id
This commit is contained in:
parent
7e889786b8
commit
e7edfd9fec
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ def public_timeline(%{assigns: %{user: user}} = conn, params) do
|
|||
end
|
||||
|
||||
def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do
|
||||
with %User{} = user <- User.get_cached_by_id(params["id"]) do
|
||||
with %User{} = user <- User.get_cached_by_nickname_or_id(params["id"]) do
|
||||
activities = ActivityPub.fetch_user_activities(user, reading_user, params)
|
||||
|
||||
conn
|
||||
|
|
Loading…
Reference in a new issue