Reshares are now working

This commit is contained in:
Michael 2017-12-20 18:18:25 +00:00
parent cdce9b48ab
commit f7272be4a8
3 changed files with 20 additions and 22 deletions

View file

@ -612,7 +612,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
if ($items && count($items)) {
// Currently behind a config value. This allows the commenting and sharing of every public item.
if (Config::get('system', 'comment_public')) {
if (Config::get('system', 'comment_public') && local_user()) {
$writable = ($items[0]['uid'] == 0) && in_array($items[0]['network'], array(NETWORK_OSTATUS, NETWORK_DIASPORA));
} else {
$writable = false;