kopia lustrzana https://github.com/nextcloud/social
commit
3f3edc4fd6
|
@ -41,7 +41,6 @@ class SocialFiltersQueryBuilder extends SocialLimitsQueryBuilder {
|
|||
* @deprecated ?
|
||||
*/
|
||||
public function filterDuplicate() {
|
||||
return;
|
||||
if (!$this->hasViewer()) {
|
||||
return;
|
||||
}
|
||||
|
@ -51,11 +50,11 @@ class SocialFiltersQueryBuilder extends SocialLimitsQueryBuilder {
|
|||
|
||||
$expr = $this->expr();
|
||||
$filter = $expr->orX();
|
||||
// $filter->add($this->exprLimitToDBFieldInt('filter_duplicate', 0, 's'));
|
||||
$filter->add($this->exprLimitToDBFieldInt('filter_duplicate', 0, 's'));
|
||||
|
||||
$follower = $expr->andX();
|
||||
$follower->add($this->exprLimitToDBField('attributed_to_prim', $this->prim($viewer->getId()), false));
|
||||
$follower->add($expr->isNull('fs.id_prim'));
|
||||
// $follower->add($expr->isNull('fs.id_prim'));
|
||||
$filter->add($follower);
|
||||
|
||||
$this->andWhere($filter);
|
||||
|
|
Ładowanie…
Reference in New Issue