mirror of
https://github.com/friendica/friendica
synced 2025-04-22 21:50:12 +00:00
Commenting on community timelines is now possible
This commit is contained in:
parent
11cdb25aeb
commit
174a1bb54b
2 changed files with 67 additions and 9 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue