Fix: Only public posts can be pinned

This commit is contained in:
Michael
2022-06-04 06:11:32 +00:00
parent 6e3b5d251e
commit 4108704ee3
5 changed files with 11 additions and 4 deletions

View File

@@ -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 = [