From: Mark Felder Date: Wed, 29 May 2019 17:20:18 +0000 (-0500) Subject: Permit fetching statuses from API with nickname or id X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e7edfd9fec88af24869c3805a404f2b0a20914de;p=akkoma Permit fetching statuses from API with nickname or id --- diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 2110027c3..bc75ab35a 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -330,7 +330,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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