diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-04-02 14:47:17 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-04-02 14:47:17 +0300 |
commit | dbcfac11b45b367185a3b18a2db3e3fb07e8f20d (patch) | |
tree | 039254a94616f04f4ea00e893bf0fb66dc06d9e8 /test/web/common_api | |
parent | dfd2c741849e9afaf35e3ddbecbb50feb47f5d22 (diff) | |
parent | fd932b14a7e7335a91a2acc2d6dd6fba7e2e90b3 (diff) | |
download | pleroma-dbcfac11b45b367185a3b18a2db3e3fb07e8f20d.tar.gz pleroma-dbcfac11b45b367185a3b18a2db3e3fb07e8f20d.zip |
Merge branch 'develop' into issue/1276
Diffstat (limited to 'test/web/common_api')
-rw-r--r-- | test/web/common_api/common_api_utils_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs index 45fc94522..d383d1714 100644 --- a/test/web/common_api/common_api_utils_test.exs +++ b/test/web/common_api/common_api_utils_test.exs @@ -472,6 +472,13 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do activity = insert(:note_activity, user: user, note: object) Pleroma.Repo.delete(object) + obj_url = activity.data["object"] + + Tesla.Mock.mock(fn + %{method: :get, url: ^obj_url} -> + %Tesla.Env{status: 404, body: ""} + end) + assert Utils.maybe_notify_mentioned_recipients(["test-test"], activity) == [ "test-test" ] |