]> git.mxchange.org Git - friendica.git/commitdiff
Don't allow deletion of public posts
authorMichael <heluecht@pirati.ca>
Wed, 13 Jun 2018 19:19:17 +0000 (19:19 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 13 Jun 2018 19:19:17 +0000 (19:19 +0000)
src/Object/Post.php

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