Merge pull request #4160 from annando/community
We now are having a global items page
This commit is contained in:
commit
6e71a84075
10 changed files with 213 additions and 76 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);
|
||||
|
|
|
@ -66,6 +66,10 @@ class Thread extends BaseObject
|
|||
$this->profile_owner = $a->profile['uid'];
|
||||
$this->writable = can_write_wall($a, $this->profile_owner) || $writable;
|
||||
break;
|
||||
case 'community':
|
||||
$this->profile_owner = local_user();
|
||||
$this->writable = $writable;
|
||||
break;
|
||||
default:
|
||||
logger('[ERROR] Conversation::setMode : Unhandled mode ('. $mode .').', LOGGER_DEBUG);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue