Fix: Only public posts can be pinned
This commit is contained in:
@@ -342,7 +342,7 @@ class Post
|
||||
];
|
||||
|
||||
if ($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) {
|
||||
if ($origin) {
|
||||
if ($origin && in_array($item['private'], [Item::PUBLIC, Item::UNLISTED])) {
|
||||
$ispinned = ($item['featured'] ? 'pinned' : 'unpinned');
|
||||
|
||||
$pin = [
|
||||
|
||||
Reference in New Issue
Block a user