projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d2fce4
)
Don't allow deletion of public posts
author
Michael
<heluecht@pirati.ca>
Wed, 13 Jun 2018 19:19:17 +0000
(19:19 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 13 Jun 2018 19:19:17 +0000
(19:19 +0000)
src/Object/Post.php
patch
|
blob
|
history
diff --git
a/src/Object/Post.php
b/src/Object/Post.php
index 4c2783874c78d0c9047b568b6078fb31415e5025..a66e48a380b26995c5917d795e69c51d01933592 100644
(file)
--- a/
src/Object/Post.php
+++ b/
src/Object/Post.php
@@
-192,7
+192,7
@@
class Post extends BaseObject
'delete' => $delete,
];
- if (!local_user()) {
+ if (!local_user()
|| ($item['uid'] == 0)
) {
$drop = false;
}