Merge branch 'feature/matstodon-statuses-by-name' into 'develop'

Feature/matstodon statuses by name

See merge request pleroma/pleroma!1211
This commit is contained in:
feld 2019-07-19 21:59:18 +00:00
commit 93df0796f0
3 changed files with 6 additions and 2 deletions

View file

@ -440,7 +440,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
params =
params
|> Map.put("tag", params["tagged"])