[PLUGIN][ActivityPub][Test] Add Like{Note} fixture
This commit is contained in:
parent
259d2da05a
commit
7eddbd343d
|
@ -63,5 +63,8 @@ class ActivityPubFixtures extends Fixture
|
||||||
$create_reply_path = self::fixturesPath('activities/create_reply.jsonld', $ontology);
|
$create_reply_path = self::fixturesPath('activities/create_reply.jsonld', $ontology);
|
||||||
$create_reply = Activity::fromJson(fread(fopen($create_reply_path, 'r'), filesize($create_reply_path)));
|
$create_reply = Activity::fromJson(fread(fopen($create_reply_path, 'r'), filesize($create_reply_path)));
|
||||||
DB::flush();
|
DB::flush();
|
||||||
|
$like_note_path = self::fixturesPath('activities/like_note.jsonld', $ontology);
|
||||||
|
$like_note = Activity::fromJson(fread(fopen($like_note_path, 'r'), filesize($like_note_path)));
|
||||||
|
DB::flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "Like",
|
||||||
|
"@context": [
|
||||||
|
"https://www.w3.org/ns/activitystreams"
|
||||||
|
],
|
||||||
|
"id": "https://another_instance.gnusocial.test/activity/41362",
|
||||||
|
"published": "2022-03-20T17:54:15+00:00",
|
||||||
|
"actor": "https://another_instance.gnusocial.test/actor/43",
|
||||||
|
"to": [
|
||||||
|
"https://www.w3.org/ns/activitystreams#Public"
|
||||||
|
],
|
||||||
|
"cc": [
|
||||||
|
"https://instance.gnusocial.test/actor/42"
|
||||||
|
],
|
||||||
|
"object": "https://ds9.lemmy.ml/post/11202"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user