Code style
This commit is contained in:
parent
f696fce824
commit
64d181c1cc
2 changed files with 31 additions and 33 deletions
|
@ -592,8 +592,7 @@ class Conversation
|
||||||
|
|
||||||
$tags = Tag::populateFromItem($item);
|
$tags = Tag::populateFromItem($item);
|
||||||
|
|
||||||
$author = ['uid' => 0, 'id' => $item['author-id'],
|
$author = ['uid' => 0, 'id' => $item['author-id'], 'network' => $item['author-network'], 'url' => $item['author-link']];
|
||||||
'network' => $item['author-network'], 'url' => $item['author-link']];
|
|
||||||
$profile_link = Contact::magicLinkByContact($author);
|
$profile_link = Contact::magicLinkByContact($author);
|
||||||
|
|
||||||
$sparkle = '';
|
$sparkle = '';
|
||||||
|
@ -902,7 +901,7 @@ class Conversation
|
||||||
$commentcounter = [];
|
$commentcounter = [];
|
||||||
$activitycounter = [];
|
$activitycounter = [];
|
||||||
|
|
||||||
foreach ($parents AS $parent) {
|
foreach ($parents as $parent) {
|
||||||
if (!empty($parent['thr-parent-id']) && !empty($parent['gravity']) && ($parent['gravity'] == GRAVITY_ACTIVITY)) {
|
if (!empty($parent['thr-parent-id']) && !empty($parent['gravity']) && ($parent['gravity'] == GRAVITY_ACTIVITY)) {
|
||||||
$uriid = $parent['thr-parent-id'];
|
$uriid = $parent['thr-parent-id'];
|
||||||
if (!empty($parent['author-id'])) {
|
if (!empty($parent['author-id'])) {
|
||||||
|
|
|
@ -138,7 +138,6 @@ class Community extends BaseModule
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
// $o .= conversation(DI::app(), $items, 'community', false, false, 'commented', local_user());
|
|
||||||
$o .= DI::conversation()->create($items, 'community', false, false, 'commented', local_user());
|
$o .= DI::conversation()->create($items, 'community', false, false, 'commented', local_user());
|
||||||
|
|
||||||
$pager = new BoundariesPager(
|
$pager = new BoundariesPager(
|
||||||
|
|
Loading…
Reference in a new issue