kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update StatusTransformer, prioritize scope over deprecated visibility attribute
							rodzic
							
								
									bc3add0525
								
							
						
					
					
						commit
						6e45021fc2
					
				| 
						 | 
					@ -39,7 +39,7 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
 | 
				
			||||||
			'muted'                     => null,
 | 
								'muted'                     => null,
 | 
				
			||||||
			'sensitive'                 => (bool) $status->is_nsfw,
 | 
								'sensitive'                 => (bool) $status->is_nsfw,
 | 
				
			||||||
			'spoiler_text'              => $status->cw_summary ?? '',
 | 
								'spoiler_text'              => $status->cw_summary ?? '',
 | 
				
			||||||
			'visibility'                => $status->visibility ?? $status->scope,
 | 
								'visibility'                => $status->scope ?? $status->visibility,
 | 
				
			||||||
			'application'               => [
 | 
								'application'               => [
 | 
				
			||||||
				'name'      => 'web',
 | 
									'name'      => 'web',
 | 
				
			||||||
				'website'   => null
 | 
									'website'   => null
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,7 +41,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
 | 
				
			||||||
			'muted'                     => null,
 | 
								'muted'                     => null,
 | 
				
			||||||
			'sensitive'                 => (bool) $status->is_nsfw,
 | 
								'sensitive'                 => (bool) $status->is_nsfw,
 | 
				
			||||||
			'spoiler_text'              => $status->cw_summary ?? '',
 | 
								'spoiler_text'              => $status->cw_summary ?? '',
 | 
				
			||||||
			'visibility'                => $status->visibility ?? $status->scope,
 | 
								'visibility'                => $status->scope ?? $status->visibility,
 | 
				
			||||||
			'application'               => [
 | 
								'application'               => [
 | 
				
			||||||
				'name'      => 'web',
 | 
									'name'      => 'web',
 | 
				
			||||||
				'website'   => null
 | 
									'website'   => null
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue