Răsfoiți Sursa

Update NotificationTransformer

Daniel Supernault 3 ani în urmă
părinte
comite
d7b6edc018
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      app/Transformer/Api/NotificationTransformer.php

+ 4 - 2
app/Transformer/Api/NotificationTransformer.php

@@ -59,7 +59,10 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 			'like' => 'favourite',
 			'comment' => 'comment',
 			'admin.user.modlog.comment' => 'modlog',
-			'tagged' => 'tagged'
+			'tagged' => 'tagged',
+			'group:comment' => 'group:comment',
+			'story:react' => 'story:react',
+			'story:comment' => 'story:comment'
 		];
 		return $verbs[$verb];
 	}
@@ -90,7 +93,6 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 		}
 	}
 
-
 	public function includeTagged(Notification $notification)
 	{
 		$n = $notification;