mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:43:41 +00:00
Return early if no items are provided in Content\Conversation->getThreadList
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1628437859
This commit is contained in:
parent
91d63213ae
commit
248148af99
1 changed files with 4 additions and 0 deletions
|
@ -589,6 +589,10 @@ class Conversation
|
||||||
*/
|
*/
|
||||||
public function getThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
|
public function getThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
|
||||||
{
|
{
|
||||||
|
if (!$items) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
if (in_array($mode, [self::MODE_FILED, self::MODE_SEARCH, self::MODE_CONTACT_POSTS])) {
|
if (in_array($mode, [self::MODE_FILED, self::MODE_SEARCH, self::MODE_CONTACT_POSTS])) {
|
||||||
$threads = $this->getContextLessThreadList($items, $mode, $preview, $pagedrop, $formSecurityToken);
|
$threads = $this->getContextLessThreadList($items, $mode, $preview, $pagedrop, $formSecurityToken);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue