diff options
author | tusooa <tusooa@kazv.moe> | 2023-07-12 23:29:23 -0400 |
---|---|---|
committer | tusooa <tusooa@kazv.moe> | 2023-09-13 19:20:32 -0400 |
commit | 875b46d97d910ffd2c33ac26ed8dfe38f7672f52 (patch) | |
tree | a1dd5f2559f68ad93e13b855ade9854a08d0ed8f | |
parent | 87353e5ad12799d12507253fe9a0363fd9f0c817 (diff) | |
download | pleroma-875b46d97d910ffd2c33ac26ed8dfe38f7672f52.tar.gz pleroma-875b46d97d910ffd2c33ac26ed8dfe38f7672f52.zip |
Do not mention original poster when quoting
-rw-r--r-- | lib/pleroma/web/common_api/activity_draft.ex | 3 | ||||
-rw-r--r-- | test/pleroma/web/common_api_test.exs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/pleroma/web/common_api/activity_draft.ex b/lib/pleroma/web/common_api/activity_draft.ex index 32921aa5a..ca1329284 100644 --- a/lib/pleroma/web/common_api/activity_draft.ex +++ b/lib/pleroma/web/common_api/activity_draft.ex @@ -139,9 +139,6 @@ defmodule Pleroma.Web.CommonAPI.ActivityDraft do defp quote_post(%{params: %{quote_id: id}} = draft) when not_empty_string(id) do case Activity.get_by_id_with_object(id) do - %Activity{actor: actor_ap_id} = activity when not_empty_string(actor_ap_id) -> - %__MODULE__{draft | quote_post: activity, mentions: [actor_ap_id]} - %Activity{} = activity -> %__MODULE__{draft | quote_post: activity} diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs index 70a5b6fed..a98b16d4b 100644 --- a/test/pleroma/web/common_api_test.exs +++ b/test/pleroma/web/common_api_test.exs @@ -808,8 +808,8 @@ defmodule Pleroma.Web.CommonAPITest do assert quote_post.data["quoteUrl"] == quoted.data["id"] - # The OP is mentioned - assert quoted.data["actor"] in quote_post.data["to"] + # The OP is not mentioned + refute quoted.data["actor"] in quote_post.data["to"] end test "quote posting with explicit addressing doesn't mention the OP" do |