mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-28 23:57:59 +01:00
Fixed dashboard from crashing when RSS feed doesn't work
This commit is contained in:
parent
1b6032e9e3
commit
37313a7540
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@
|
|||
$postHashes[] = self::calculateHash($post->get_permalink());
|
||||
}
|
||||
|
||||
if (count($postHashes) == 0)
|
||||
return [];
|
||||
|
||||
$seenRecords = Auth::check() ? self::where('user_id', '=', Auth::user()->id)->whereIn('post_hash', $postHashes)->get() : [];
|
||||
$seenHashes = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue