mirror of
https://github.com/flarum/core.git
synced 2025-08-13 03:44:32 +02:00
Fix some incorrect attribute names
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Flarum\Notification\Command;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Flarum\Notification\Notification;
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
|
||||
@@ -36,7 +37,7 @@ class ReadNotificationHandler
|
||||
'type' => $notification->type,
|
||||
'subject_id' => $notification->subject_id
|
||||
])
|
||||
->update(['is_read' => true]);
|
||||
->update(['read_at' => Carbon::now()]);
|
||||
|
||||
$notification->is_read = true;
|
||||
|
||||
|
@@ -179,7 +179,7 @@ class NotificationSyncer
|
||||
array_map(function (User $user) use ($attributes, $now) {
|
||||
return $attributes + [
|
||||
'user_id' => $user->id,
|
||||
'time' => $now
|
||||
'created_at' => $now
|
||||
];
|
||||
}, $recipients)
|
||||
);
|
||||
|
Reference in New Issue
Block a user