diff options
author | lain <lain@soykaf.club> | 2020-05-01 13:35:42 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-01 13:35:42 +0200 |
commit | ab01863abf1839749907160edcad1eeee9c80de5 (patch) | |
tree | 1e0c1cc4289a7e76eea75a4a26cebdbee5d8554d /lib/pleroma/web/common_api/common_api.ex | |
parent | 5f42e6629d862f0a8dcbbd1527998685b6932d52 (diff) | |
parent | 93f64aba78f130cced2fa30dd3475e5c446be9d6 (diff) | |
download | pleroma-ab01863abf1839749907160edcad1eeee9c80de5.tar.gz |
Merge branch 'feature/delete-validator' of git.pleroma.social:pleroma/pleroma into feature/delete-validator
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, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 7cb8e47d0..adf15b69f 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -7,6 +7,7 @@ defmodule Pleroma.Web.CommonAPI do alias Pleroma.ActivityExpiration alias Pleroma.Conversation.Participation alias Pleroma.FollowingRelationship + alias Pleroma.Notification alias Pleroma.Object alias Pleroma.ThreadMute alias Pleroma.User @@ -61,6 +62,7 @@ defmodule Pleroma.Web.CommonAPI do with %Activity{} = follow_activity <- Utils.fetch_latest_follow(follower, followed), {:ok, follow_activity} <- Utils.update_follow_state_for_all(follow_activity, "reject"), {:ok, _relationship} <- FollowingRelationship.update(follower, followed, :follow_reject), + {:ok, _notifications} <- Notification.dismiss(follow_activity), {:ok, _activity} <- ActivityPub.reject(%{ to: [follower.ap_id], |