Code style

This commit is contained in:
Michael 2021-09-24 04:35:27 +00:00
parent f696fce824
commit 64d181c1cc
2 changed files with 31 additions and 33 deletions

View File

@ -592,8 +592,7 @@ class Conversation
$tags = Tag::populateFromItem($item);
$author = ['uid' => 0, 'id' => $item['author-id'],
'network' => $item['author-network'], 'url' => $item['author-link']];
$author = ['uid' => 0, 'id' => $item['author-id'], 'network' => $item['author-network'], 'url' => $item['author-link']];
$profile_link = Contact::magicLinkByContact($author);
$sparkle = '';
@ -902,7 +901,7 @@ class Conversation
$commentcounter = [];
$activitycounter = [];
foreach ($parents AS $parent) {
foreach ($parents as $parent) {
if (!empty($parent['thr-parent-id']) && !empty($parent['gravity']) && ($parent['gravity'] == GRAVITY_ACTIVITY)) {
$uriid = $parent['thr-parent-id'];
if (!empty($parent['author-id'])) {

View File

@ -138,7 +138,6 @@ class Community extends BaseModule
return $o;
}
// $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(