Commenting on community timelines is now possible

This commit is contained in:
Michael 2018-01-04 10:02:56 +00:00
parent 11cdb25aeb
commit 174a1bb54b
2 changed files with 67 additions and 9 deletions

View file

@ -285,6 +285,12 @@ class Post extends BaseObject
if ($shareable) {
$buttons['share'] = array(t('Share this'), t('share'));
}
// If a contact isn't writable, we cannot send a like or dislike to it
if (!$item['writable']) {
unset($buttons["like"]);
unset($buttons["dislike"]);
}
}
$comment = $this->getCommentBox($indent);
@ -322,12 +328,6 @@ class Post extends BaseObject
unset($buttons["like"]);
}
// If a contact isn't writable, we cannot send a like or dislike to it
if (!$item['writable']) {
unset($buttons["like"]);
unset($buttons["dislike"]);
}
$tmp_item = array(
'template' => $this->getTemplate(),
'type' => implode("", array_slice(explode("/", $item['verb']), -1)),