Merge pull request #4160 from annando/community

We now are having a global items page
This commit is contained in:
Hypolite Petovan 2018-01-04 11:50:45 -05:00 committed by GitHub
commit 6e71a84075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 213 additions and 76 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);

View file

@ -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;