Update getMyMoviesRSS function

This commit is contained in:
DariusIII
2018-11-23 12:36:23 +01:00
parent 27efc19437
commit 705cc92056
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ class RSS extends Capabilities
* @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|mixed
* @throws \Exception
*/
public function getMyMoviesRss($limit = 0, $userID = 0, array $excludedCats = [])
public function getMyMoviesRss($limit, $userID = 0, array $excludedCats = [])
{
$sql = sprintf(
"
@@ -229,7 +229,7 @@ class RSS extends Capabilities
Category::MOVIE_ROOT,
Category::MOVIE_OTHER,
$this->releases->showPasswords(),
$limit > 0 ? ' LIMIT '.($limit > 100 ? 100 : $limit).' OFFSET 0' : ''
! empty($limit) ? sprintf(' LIMIT %d OFFSET 0', $limit > 100 ? 100 : $limit) : ''
);
$expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium'));
+1
View File
@@ -1,4 +1,5 @@
2018-11-23 DariusIII
* Chg: Update getMyMoviesRSS function
* Fix: Fix empty email on profile save
* Fix: Fix MyMovies RSS feed
2018-11-22 DariusIII