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
10 changed files with 213 additions and 76 deletions
+6
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);
+4
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;