1
0
Эх сурвалжийг харах

Update NotificationTransformer

Daniel Supernault 5 жил өмнө
parent
commit
abcc62a3fc

+ 2 - 3
app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

@@ -49,10 +49,9 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 		$verbs = [
 			'follow' => 'follow',
 			'mention' => 'mention',
-			'reblog' => 'share',
-			'share' => 'share',
+			'share' => 'reblog',
 			'like' => 'favourite',
-			'comment' => 'comment',
+			'comment' => 'mention',
 		];
 		return $verbs[$verb];
 	}