mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:10:11 +00:00
Filter user defined channels by size
This commit is contained in:
parent
0c583574e1
commit
3fe4991fcf
12 changed files with 68 additions and 5 deletions
|
@ -427,6 +427,14 @@ class Timeline extends BaseModule
|
|||
$condition = DBA::mergeConditions($condition, array_merge(["NOT `uri-id` IN (SELECT `uri-id` FROM `post-tag` INNER JOIN `tag` ON `tag`.`id` = `post-tag`.`tid` WHERE `post-tag`.`type` = 1 AND `name` IN (" . $placeholders . "))"], $search));
|
||||
}
|
||||
|
||||
if (!is_null($channel->minSize)) {
|
||||
$condition = DBA::mergeConditions($condition, ["`size` >= ?", $channel->minSize]);
|
||||
}
|
||||
|
||||
if (!is_null($channel->maxSize)) {
|
||||
$condition = DBA::mergeConditions($condition, ["`size` <= ?", $channel->maxSize]);
|
||||
}
|
||||
|
||||
if (!empty($channel->mediaType)) {
|
||||
$condition = DBA::mergeConditions($condition, ["`media-type` & ?", $channel->mediaType]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue