Skip to content

Commit

Permalink
Fix notifications not including post content
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Sep 22, 2017
1 parent f7fc2cc commit 9da2ac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Listener/UpdatePostMentionsMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Flarum\Mentions\Listener;

use Flarum\Api\Serializer\PostBasicSerializer;
use Flarum\Api\Serializer\PostSerializer;
use Flarum\Core\Notification\NotificationSyncer;
use Flarum\Core\Post;
use Flarum\Event\ConfigureNotificationTypes;
Expand Down Expand Up @@ -57,7 +57,7 @@ public function subscribe(Dispatcher $events)
*/
public function addNotificationType(ConfigureNotificationTypes $event)
{
$event->add(PostMentionedBlueprint::class, PostBasicSerializer::class, ['alert']);
$event->add(PostMentionedBlueprint::class, PostSerializer::class, ['alert']);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Listener/UpdateUserMentionsMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Flarum\Mentions\Listener;

use Flarum\Api\Serializer\PostBasicSerializer;
use Flarum\Api\Serializer\PostSerializer;
use Flarum\Core\Notification\NotificationSyncer;
use Flarum\Core\Post;
use Flarum\Core\User;
Expand Down Expand Up @@ -58,7 +58,7 @@ public function subscribe(Dispatcher $events)
*/
public function addNotificationType(ConfigureNotificationTypes $event)
{
$event->add(UserMentionedBlueprint::class, PostBasicSerializer::class, ['alert']);
$event->add(UserMentionedBlueprint::class, PostSerializer::class, ['alert']);
}

/**
Expand Down

0 comments on commit 9da2ac1

Please sign in to comment.