mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AccountController, fix hydrateNotifications()
Notifications expect a collection, not a vanilla array.
This commit is contained in:
parent
95dcf8f7b3
commit
e37108c544
2 changed files with 12 additions and 2 deletions
|
@ -38,9 +38,9 @@ class AccountController extends Controller
|
|||
public function hydrateNotifications($keys)
|
||||
{
|
||||
$prefix = 'notification.';
|
||||
$notifications = [];
|
||||
$notifications = collect([]);
|
||||
foreach($keys as $key) {
|
||||
$notifications[] = Cache::get($prefix . $key);
|
||||
$notifications->push(Cache::get("{$prefix}{$key}"));
|
||||
}
|
||||
return $notifications;
|
||||
}
|
||||
|
|
10
app/WebSub.php
Normal file
10
app/WebSub.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WebSub extends Model
|
||||
{
|
||||
//
|
||||
}
|
Loading…
Reference in a new issue