diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-10-27 16:05:32 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-10-27 16:05:32 +0300 |
commit | 8eff05d4c62c4d3300fee173cad84f75a0aafb4d (patch) | |
tree | e16009fe073edd6315d94afe539b55cfd75dcf71 /test/web/common_api/common_api_test.exs | |
parent | b08b1d5d91968fbe94e20897ee3529216dd50a0a (diff) | |
download | pleroma-8eff05d4c62c4d3300fee173cad84f75a0aafb4d.tar.gz pleroma-8eff05d4c62c4d3300fee173cad84f75a0aafb4d.zip |
Strip status data from Flag (when federating or closing/resolving report)
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 709aa4dbe..d69ed38a7 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -421,6 +421,11 @@ defmodule Pleroma.Web.CommonAPITest do {:ok, report} = CommonAPI.update_report_state(report_id, "resolved") assert report.data["state"] == "resolved" + + [reported_user, activity_id] = report.data["object"] + + assert reported_user == target_user.ap_id + assert activity_id == activity.data["id"] end test "does not update report state when state is unsupported" do |