kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Fix json-ld attributes, fixes #3423
							rodzic
							
								
									8f9d36bd3d
								
							
						
					
					
						commit
						95f902b12b
					
				|  | @ -60,10 +60,10 @@ class CreateNote extends Fractal\TransformerAbstract | |||
| 					'Hashtag' 			=> 'as:Hashtag', | ||||
| 					'sensitive' 		=> 'as:sensitive', | ||||
| 					'commentsEnabled' 	=> 'sc:Boolean', | ||||
| 					'capabilities'		=> [ | ||||
| 						'announce'		=> ['@type' => '@id'], | ||||
| 						'like'			=> ['@type' => '@id'], | ||||
| 						'reply'			=> ['@type' => '@id'] | ||||
| 					'@capabilities'		=> [ | ||||
| 						'@announce'			=> '@id', | ||||
| 						'@like'				=> '@id', | ||||
| 						'@reply'			=> '@id', | ||||
| 					], | ||||
| 					'toot' 				=> 'http://joinmastodon.org/ns#', | ||||
| 					'Emoji'				=> 'toot:Emoji' | ||||
|  |  | |||
|  | @ -23,11 +23,11 @@ class CreateQuestion extends Fractal\TransformerAbstract | |||
| 					'Hashtag' 			=> 'as:Hashtag', | ||||
| 					'sensitive' 		=> 'as:sensitive', | ||||
| 					'commentsEnabled' 	=> 'sc:Boolean', | ||||
| 					'capabilities'		=> [ | ||||
| 						'announce'		=> ['@type' => '@id'], | ||||
| 						'like'			=> ['@type' => '@id'], | ||||
| 						'reply'			=> ['@type' => '@id'] | ||||
| 					] | ||||
| 					'@capabilities'		=> [ | ||||
| 						'@announce'			=> '@id', | ||||
| 						'@like'				=> '@id', | ||||
| 						'@reply'			=> '@id', | ||||
| 					], | ||||
| 				] | ||||
| 			], | ||||
| 			'id' 					=> $status->permalink(), | ||||
|  |  | |||
|  | @ -10,10 +10,7 @@ class DeleteNote extends Fractal\TransformerAbstract | |||
| 	public function transform(Status $status) | ||||
| 	{ | ||||
| 		return [ | ||||
| 			'@context' => [ | ||||
| 				'https://www.w3.org/ns/activitystreams', | ||||
| 				'https://w3id.org/security/v1', | ||||
| 			], | ||||
| 			'@context' => 'https://www.w3.org/ns/activitystreams', | ||||
| 			'id' 					=> $status->permalink('#delete'), | ||||
| 			'type' 					=> 'Delete', | ||||
| 			'actor' 				=> $status->profile->permalink(), | ||||
|  |  | |||
|  | @ -61,10 +61,10 @@ class Note extends Fractal\TransformerAbstract | |||
| 					'Hashtag' 			=> 'as:Hashtag', | ||||
| 					'sensitive' 		=> 'as:sensitive', | ||||
| 					'commentsEnabled' 	=> 'sc:Boolean', | ||||
| 					'capabilities'		=> [ | ||||
| 						'announce'		=> ['@type' => '@id'], | ||||
| 						'like'			=> ['@type' => '@id'], | ||||
| 						'reply'			=> ['@type' => '@id'], | ||||
| 					'@capabilities'		=> [ | ||||
| 						'@announce'			=> '@id', | ||||
| 						'@like'				=> '@id', | ||||
| 						'@reply'			=> '@id', | ||||
| 					], | ||||
| 					'toot' 				=> 'http://joinmastodon.org/ns#', | ||||
| 					'Emoji'				=> 'toot:Emoji' | ||||
|  |  | |||
|  | @ -40,11 +40,11 @@ class Question extends Fractal\TransformerAbstract | |||
| 						'Hashtag' 			=> 'as:Hashtag', | ||||
| 						'sensitive' 		=> 'as:sensitive', | ||||
| 						'commentsEnabled' 	=> 'sc:Boolean', | ||||
| 						'capabilities'		=> [ | ||||
| 							'announce'		=> ['@type' => '@id'], | ||||
| 							'like'			=> ['@type' => '@id'], | ||||
| 							'reply'			=> ['@type' => '@id'] | ||||
| 						] | ||||
| 						'@capabilities'		=> [ | ||||
| 							'@announce'			=> '@id', | ||||
| 							'@like'				=> '@id', | ||||
| 							'@reply'			=> '@id', | ||||
| 						], | ||||
| 					] | ||||
| 				], | ||||
| 				'id' 				=> $status->url(), | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Daniel Supernault
						Daniel Supernault