mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-03 10:57:50 -05:00
Revert deletion of the favorite actions
This commit is contained in:
@@ -96,6 +96,10 @@ class FreshRSS_index_Controller extends Minz_ActionController {
|
||||
case 'a':
|
||||
$hasUnread = $this->view->nb_not_read > 0;
|
||||
break;
|
||||
case 's':
|
||||
// This is deprecated. The favorite button does not exist anymore
|
||||
$hasUnread = $this->view->nb_favorites['unread'] > 0;
|
||||
break;
|
||||
case 'c':
|
||||
$hasUnread = (!isset($this->view->cat_aside[$getId])) || ($this->view->cat_aside[$getId]->nbNotRead() > 0);
|
||||
break;
|
||||
|
||||
@@ -418,6 +418,10 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
|
||||
$where .= 'f.priority > 0 ';
|
||||
$joinFeed = true;
|
||||
break;
|
||||
case 's':
|
||||
// This is deprecated. The favorite button does not exist anymore
|
||||
$where .= 'e1.is_favorite = 1 ';
|
||||
break;
|
||||
case 'c':
|
||||
$where .= 'f.category = ? ';
|
||||
$values[] = intval($id);
|
||||
|
||||
Reference in New Issue
Block a user