diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-25 13:41:10 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-25 13:41:10 +0700 |
commit | c157e27a000a12dc8f660c056744a6611beb01b1 (patch) | |
tree | 36ae4721a1cb92983c7a8fed41b737e0a5a57486 /lib/pleroma/web/common_api/common_api.ex | |
parent | e8c2f9a73a37636a9a8ed5c2998617b841f482da (diff) | |
parent | 3789945784a331790d73f69b407751df9f7d6e8f (diff) | |
download | pleroma-c157e27a000a12dc8f660c056744a6611beb01b1.tar.gz |
Merge branch 'develop' into feature/disable-account
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 6458a3449..cfbc5dc10 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -284,7 +284,7 @@ defmodule Pleroma.Web.CommonAPI do def report(user, data) do with {:account_id, %{"account_id" => account_id}} <- {:account_id, data}, - {:account, %User{} = account} <- {:account, User.get_by_id(account_id)}, + {:account, %User{} = account} <- {:account, User.get_cached_by_id(account_id)}, {:ok, {content_html, _, _}} <- make_report_content_html(data["comment"]), {:ok, statuses} <- get_report_statuses(account, data), {:ok, activity} <- |