Add favorites note

pull/37/head
Varun Patil 2022-09-11 19:02:51 -07:00
parent 44d05ceaa8
commit d4746abade
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
trait TimelineQueryFavorites {
public function transformFavoriteFilter(IQueryBuilder $query) {
// TODO: 2 is not guaranteed to be the favorites tag id
// use OCP\ITags; instead
$query->innerJoin('m', 'vcategory_to_object', 'c',
$query->expr()->andX(
$query->expr()->eq('c.objid', 'm.fileid'),