diff options
author | Alex Gleason <alex@alexgleason.me> | 2022-02-02 12:50:03 -0600 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2022-02-02 12:50:03 -0600 |
commit | 6d710a0f7e026b78053ff179c2bd6ffdd8ed521c (patch) | |
tree | ce136009be490433d52b73c22418e34da9d21cd8 /test/pleroma/web/activity_pub/transmogrifier_test.exs | |
parent | 643f78cb220abb9873cdf8d1d3b30678ea4daccc (diff) | |
parent | 71c80204c9b395545419a818db826b3f5cb9e6a5 (diff) |
Merge remote-tracking branch 'origin/develop' into quote-postquote-post
Diffstat (limited to 'test/pleroma/web/activity_pub/transmogrifier_test.exs')
-rw-r--r-- | test/pleroma/web/activity_pub/transmogrifier_test.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/transmogrifier_test.exs b/test/pleroma/web/activity_pub/transmogrifier_test.exs index 388d59faf..0d338ec2b 100644 --- a/test/pleroma/web/activity_pub/transmogrifier_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier_test.exs @@ -129,6 +129,17 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do # It fetched the quoted post assert Object.normalize("https://misskey.io/notes/8vs6wxufd0") end + + test "a reply with mismatched context is rejected" do + insert(:user, ap_id: "https://macgirvin.com/channel/mike") + + note_activity = + "test/fixtures/roadhouse-create-activity.json" + |> File.read!() + |> Jason.decode!() + + assert {:error, _} = Transmogrifier.handle_incoming(note_activity) + end end describe "prepare outgoing" do |