Disable editing of public items / Reshare of community items is now possible

This commit is contained in:
Michael 2018-01-05 13:48:06 +00:00
parent 5640c42469
commit a157966bb9
2 changed files with 23 additions and 0 deletions

View file

@ -155,6 +155,13 @@ class Post extends BaseObject
$edpost = false;
}
// Editing on items of not subscribed users isn't currently possible
// There are some issues on editing that prevent this.
// But also it is an issue of the supported protocols that doesn't allow editing at all.
if ($item['uid'] == 0) {
$edpost = false;
}
if (($this->getDataValue('uid') == local_user()) || $this->isVisiting()) {
$dropping = true;
}