[COMPONENT][Conversation] Remove Feed list entry

Notifications feed is enough
This commit is contained in:
2021-12-23 13:16:04 +00:00
parent e743a17883
commit 17b7ef13a0
3 changed files with 4 additions and 38 deletions

View File

@@ -26,14 +26,13 @@ declare(strict_types = 1);
namespace Component\Conversation\Controller;
use App\Core\Controller\FeedController;
use App\Core\DB\DB;
use App\Entity\Note;
use App\Util\Common;
use App\Util\Exception\ClientException;
use App\Util\Exception\NoLoggedInUser;
use App\Util\Exception\NoSuchNoteException;
use App\Util\Exception\ServerException;
use Component\Feed\Util\FeedController;
use Symfony\Component\HttpFoundation\Request;
class Reply extends FeedController
@@ -62,25 +61,4 @@ class Reply extends FeedController
'note' => $note,
];
}
/**
* Render actor replies page
*
* @throws NoLoggedInUser
*
* @return array
*/
public function showReplies(Request $request)
{
$actor_id = Common::ensureLoggedIn()->getId();
$notes = DB::dql('select n from App\Entity\Note n '
. 'where n.reply_to is not null and n.actor_id = :id '
. 'order by n.created DESC', ['id' => $actor_id], );
return [
'_template' => 'feed/feed.html.twig',
'notes' => $notes,
'should_format' => false,
'page_title' => 'Replies feed',
];
}
}