ソースを参照

Merge pull request #3475 from pixelfed/staging

Fix typos in ap transformers
daniel 3 年 前
コミット
1f79fd5699

+ 14 - 14
app/Transformer/ActivityPub/Verb/CreateNote.php

@@ -58,27 +58,27 @@ class CreateNote extends Fractal\TransformerAbstract
 				[
 				[
 					'Hashtag' 			=> 'as:Hashtag',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
 					'sensitive' 		=> 'as:sensitive',
-					'schema' 		=> 'http://schema.org/',
-					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'schema' 			=> 'http://schema.org/',
+					'pixelfed' 			=> 'http://pixelfed.org/ns#',
 					'commentsEnabled' 	=> [
 					'commentsEnabled' 	=> [
-						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@id' 			=> 'pixelfed:commentsEnabled',
 						'@type' 		=> 'schema:Boolean'
 						'@type' 		=> 'schema:Boolean'
 					],
 					],
 					'capabilities'		=> [
 					'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#',
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'
 					'Emoji'				=> 'toot:Emoji'

+ 14 - 14
app/Transformer/ActivityPub/Verb/CreateQuestion.php

@@ -21,27 +21,27 @@ class CreateQuestion extends Fractal\TransformerAbstract
 				[
 				[
 					'Hashtag' 			=> 'as:Hashtag',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
 					'sensitive' 		=> 'as:sensitive',
-					'schema' 		=> 'http://schema.org/',
-					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'schema' 			=> 'http://schema.org/',
+					'pixelfed' 			=> 'http://pixelfed.org/ns#',
 					'commentsEnabled' 	=> [
 					'commentsEnabled' 	=> [
-						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@id' 			=> 'pixelfed:commentsEnabled',
 						'@type' 		=> 'schema:Boolean'
 						'@type' 		=> 'schema:Boolean'
 					],
 					],
 					'capabilities'		=> [
 					'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#',
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'
 					'Emoji'				=> 'toot:Emoji'

+ 14 - 14
app/Transformer/ActivityPub/Verb/Note.php

@@ -59,27 +59,27 @@ class Note extends Fractal\TransformerAbstract
 				[
 				[
 					'Hashtag' 			=> 'as:Hashtag',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
 					'sensitive' 		=> 'as:sensitive',
-					'schema' 		=> 'http://schema.org/',
-					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'schema' 			=> 'http://schema.org/',
+					'pixelfed' 			=> 'http://pixelfed.org/ns#',
 					'commentsEnabled' 	=> [
 					'commentsEnabled' 	=> [
-						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@id' 			=> 'pixelfed:commentsEnabled',
 						'@type' 		=> 'schema:Boolean'
 						'@type' 		=> 'schema:Boolean'
 					],
 					],
 					'capabilities'		=> [
 					'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#',
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'
 					'Emoji'				=> 'toot:Emoji'

+ 14 - 14
app/Transformer/ActivityPub/Verb/Question.php

@@ -38,27 +38,27 @@ class Question extends Fractal\TransformerAbstract
 				[
 				[
 					'Hashtag' 			=> 'as:Hashtag',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
 					'sensitive' 		=> 'as:sensitive',
-					'schema' 		=> 'http://schema.org/',
-					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'schema' 			=> 'http://schema.org/',
+					'pixelfed' 			=> 'http://pixelfed.org/ns#',
 					'commentsEnabled' 	=> [
 					'commentsEnabled' 	=> [
-						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@id' 			=> 'pixelfed:commentsEnabled',
 						'@type' 		=> 'schema:Boolean'
 						'@type' 		=> 'schema:Boolean'
 					],
 					],
 					'capabilities'		=> [
 					'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#',
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'
 					'Emoji'				=> 'toot:Emoji'