mirror of
https://github.com/friendica/friendica
synced 2025-04-22 09:10:10 +00:00
Configuration is now stored in the "channel" section
This commit is contained in:
parent
5c166be3fc
commit
59a822ee87
3 changed files with 5 additions and 5 deletions
|
@ -237,9 +237,8 @@ class Channel extends BaseModule
|
|||
*/
|
||||
protected static function getItems()
|
||||
{
|
||||
$post = DBA::selectToArray('post-engagement', ['comments'], [], ['order' => ['comments' => true], 'limit' => [100, 1]]);
|
||||
|
||||
if (self::$content == self::WHATSHOT) {
|
||||
$post = DBA::selectToArray('post-engagement', ['comments'], [], ['order' => ['comments' => true], 'limit' => [DI::config()->get('channel', 'hot_posts_item_limit'), 1]]);
|
||||
$comments = $post[0]['comments'] ?? 0;
|
||||
if (!is_null(self::$accountType)) {
|
||||
$condition = ["`comments` >= ? AND `contact-type` = ?", $comments, self::$accountType];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue