The conversation functionality moved to a class
This commit is contained in:
@@ -127,7 +127,7 @@ class Community extends BaseModule
|
||||
|
||||
// We need the editor here to be able to reshare an item.
|
||||
if (Session::isAuthenticated()) {
|
||||
$o .= status_editor(DI::app(), [], 0, true);
|
||||
$o .= DI::conversation()->statusEditor([], 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,8 @@ class Community extends BaseModule
|
||||
return $o;
|
||||
}
|
||||
|
||||
$o .= conversation(DI::app(), $items, 'community', false, false, 'commented', local_user());
|
||||
// $o .= conversation(DI::app(), $items, 'community', false, false, 'commented', local_user());
|
||||
$o .= DI::conversation()->create($items, 'community', false, false, 'commented', local_user());
|
||||
|
||||
$pager = new BoundariesPager(
|
||||
DI::l10n(),
|
||||
|
||||
@@ -145,7 +145,7 @@ class Network extends BaseModule
|
||||
'content' => $content,
|
||||
];
|
||||
|
||||
$o .= status_editor($a, $x);
|
||||
$o .= DI::conversation()->statusEditor($x);
|
||||
}
|
||||
|
||||
if (self::$groupId) {
|
||||
@@ -178,7 +178,7 @@ class Network extends BaseModule
|
||||
$ordering = '`commented`';
|
||||
}
|
||||
|
||||
$o .= conversation(DI::app(), $items, 'network', false, false, $ordering, local_user());
|
||||
$o .= DI::conversation()->create($items, 'network', false, false, $ordering, local_user());
|
||||
|
||||
if (DI::pConfig()->get(local_user(), 'system', 'infinite_scroll')) {
|
||||
$o .= HTML::scrollLoader();
|
||||
|
||||
Reference in New Issue
Block a user