From f58dec3d731dee04c252cb349ddf9bc445ae056e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 16 May 2022 02:26:46 -0600 Subject: [PATCH] Fix typos in ap transformers --- .../ActivityPub/Verb/CreateNote.php | 28 +++++++++---------- .../ActivityPub/Verb/CreateQuestion.php | 28 +++++++++---------- app/Transformer/ActivityPub/Verb/Note.php | 28 +++++++++---------- app/Transformer/ActivityPub/Verb/Question.php | 28 +++++++++---------- 4 files changed, 56 insertions(+), 56 deletions(-) diff --git a/app/Transformer/ActivityPub/Verb/CreateNote.php b/app/Transformer/ActivityPub/Verb/CreateNote.php index b32190c99..99cdcad34 100644 --- a/app/Transformer/ActivityPub/Verb/CreateNote.php +++ b/app/Transformer/ActivityPub/Verb/CreateNote.php @@ -58,27 +58,27 @@ class CreateNote extends Fractal\TransformerAbstract [ 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', - 'schema' => 'http://schema.org/', - 'pixelfed' => 'http://pixelfed.org/ns#' + 'schema' => 'http://schema.org/', + 'pixelfed' => 'http://pixelfed.org/ns#', 'commentsEnabled' => [ - '@id' => 'pixelfed:commentsEnabled', + '@id' => 'pixelfed:commentsEnabled', '@type' => 'schema:Boolean' ], 'capabilities' => [ - '@id' => 'pixelfed:capabilities', - '@container' => '@set' + '@id' => 'pixelfed:capabilities', + '@container' => '@set' ], - 'announce' => [ - '@id' => 'pixelfed:canAnnounce', - '@type' => '@id' + 'announce' => [ + '@id' => 'pixelfed:canAnnounce', + '@type' => '@id' ], - 'like' => [ - '@id' => 'pixelfed:canLike', - '@type' => '@id' + 'like' => [ + '@id' => 'pixelfed:canLike', + '@type' => '@id' ], - 'reply' => [ - '@id' => 'pixelfed:canReply', - '@type' => '@id' + 'reply' => [ + '@id' => 'pixelfed:canReply', + '@type' => '@id' ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji' diff --git a/app/Transformer/ActivityPub/Verb/CreateQuestion.php b/app/Transformer/ActivityPub/Verb/CreateQuestion.php index 4452cecb1..f2fb6e441 100644 --- a/app/Transformer/ActivityPub/Verb/CreateQuestion.php +++ b/app/Transformer/ActivityPub/Verb/CreateQuestion.php @@ -21,27 +21,27 @@ class CreateQuestion extends Fractal\TransformerAbstract [ 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', - 'schema' => 'http://schema.org/', - 'pixelfed' => 'http://pixelfed.org/ns#' + 'schema' => 'http://schema.org/', + 'pixelfed' => 'http://pixelfed.org/ns#', 'commentsEnabled' => [ - '@id' => 'pixelfed:commentsEnabled', + '@id' => 'pixelfed:commentsEnabled', '@type' => 'schema:Boolean' ], 'capabilities' => [ - '@id' => 'pixelfed:capabilities', - '@container' => '@set' + '@id' => 'pixelfed:capabilities', + '@container' => '@set' ], - 'announce' => [ - '@id' => 'pixelfed:canAnnounce', - '@type' => '@id' + 'announce' => [ + '@id' => 'pixelfed:canAnnounce', + '@type' => '@id' ], - 'like' => [ - '@id' => 'pixelfed:canLike', - '@type' => '@id' + 'like' => [ + '@id' => 'pixelfed:canLike', + '@type' => '@id' ], - 'reply' => [ - '@id' => 'pixelfed:canReply', - '@type' => '@id' + 'reply' => [ + '@id' => 'pixelfed:canReply', + '@type' => '@id' ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji' diff --git a/app/Transformer/ActivityPub/Verb/Note.php b/app/Transformer/ActivityPub/Verb/Note.php index 2f7cbf2f6..629a7c00b 100644 --- a/app/Transformer/ActivityPub/Verb/Note.php +++ b/app/Transformer/ActivityPub/Verb/Note.php @@ -59,27 +59,27 @@ class Note extends Fractal\TransformerAbstract [ 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', - 'schema' => 'http://schema.org/', - 'pixelfed' => 'http://pixelfed.org/ns#' + 'schema' => 'http://schema.org/', + 'pixelfed' => 'http://pixelfed.org/ns#', 'commentsEnabled' => [ - '@id' => 'pixelfed:commentsEnabled', + '@id' => 'pixelfed:commentsEnabled', '@type' => 'schema:Boolean' ], 'capabilities' => [ - '@id' => 'pixelfed:capabilities', - '@container' => '@set' + '@id' => 'pixelfed:capabilities', + '@container' => '@set' ], - 'announce' => [ - '@id' => 'pixelfed:canAnnounce', - '@type' => '@id' + 'announce' => [ + '@id' => 'pixelfed:canAnnounce', + '@type' => '@id' ], - 'like' => [ - '@id' => 'pixelfed:canLike', - '@type' => '@id' + 'like' => [ + '@id' => 'pixelfed:canLike', + '@type' => '@id' ], - 'reply' => [ - '@id' => 'pixelfed:canReply', - '@type' => '@id' + 'reply' => [ + '@id' => 'pixelfed:canReply', + '@type' => '@id' ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji' diff --git a/app/Transformer/ActivityPub/Verb/Question.php b/app/Transformer/ActivityPub/Verb/Question.php index ab207bcc9..359026b16 100644 --- a/app/Transformer/ActivityPub/Verb/Question.php +++ b/app/Transformer/ActivityPub/Verb/Question.php @@ -38,27 +38,27 @@ class Question extends Fractal\TransformerAbstract [ 'Hashtag' => 'as:Hashtag', 'sensitive' => 'as:sensitive', - 'schema' => 'http://schema.org/', - 'pixelfed' => 'http://pixelfed.org/ns#' + 'schema' => 'http://schema.org/', + 'pixelfed' => 'http://pixelfed.org/ns#', 'commentsEnabled' => [ - '@id' => 'pixelfed:commentsEnabled', + '@id' => 'pixelfed:commentsEnabled', '@type' => 'schema:Boolean' ], 'capabilities' => [ - '@id' => 'pixelfed:capabilities', - '@container' => '@set' + '@id' => 'pixelfed:capabilities', + '@container' => '@set' ], - 'announce' => [ - '@id' => 'pixelfed:canAnnounce', - '@type' => '@id' + 'announce' => [ + '@id' => 'pixelfed:canAnnounce', + '@type' => '@id' ], - 'like' => [ - '@id' => 'pixelfed:canLike', - '@type' => '@id' + 'like' => [ + '@id' => 'pixelfed:canLike', + '@type' => '@id' ], - 'reply' => [ - '@id' => 'pixelfed:canReply', - '@type' => '@id' + 'reply' => [ + '@id' => 'pixelfed:canReply', + '@type' => '@id' ], 'toot' => 'http://joinmastodon.org/ns#', 'Emoji' => 'toot:Emoji'