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/object_validators/article_note_page_validator_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/object_validators/article_note_page_validator_test.exs')
-rw-r--r-- | test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs index 949b1339a..ed8a2412b 100644 --- a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs +++ b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs @@ -62,4 +62,15 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest assert cng.valid? assert cng.changes.quoteUrl == "https://misskey.io/notes/8vs6wxufd0" end + + test "a Note from Roadhouse validates" do + insert(:user, ap_id: "https://macgirvin.com/channel/mike") + + %{"object" => note} = + "test/fixtures/roadhouse-create-activity.json" + |> File.read!() + |> Jason.decode!() + + %{valid?: true} = ArticleNotePageValidator.cast_and_validate(note) + end end |