Browse Source

Don't allow deletion of public posts

pull/5207/head
Michael 2 years ago
parent
commit
77c423ec04
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Object/Post.php

+ 1
- 1
src/Object/Post.php View File

@ -192,7 +192,7 @@ class Post extends BaseObject
'delete' => $delete,
];
if (!local_user()) {
if (!local_user() || ($item['uid'] == 0)) {
$drop = false;
}


Loading…
Cancel
Save