mirror of
https://github.com/friendica/friendica
synced 2024-11-10 23:02:55 +00:00
Merge pull request #6160 from annando/item-delete
Allow to delete every post, even public ones
This commit is contained in:
commit
2456a66597
1 changed files with 8 additions and 6 deletions
|
@ -157,12 +157,14 @@ class Post extends BaseObject
|
|||
|
||||
$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != 1;
|
||||
|
||||
if (local_user() && Strings::compareLink($a->contact['url'], $item['author-link'])) {
|
||||
if (local_user()) {
|
||||
if (Strings::compareLink($a->contact['url'], $item['author-link'])) {
|
||||
if ($item["event-id"] != 0) {
|
||||
$edpost = ["events/event/" . $item['event-id'], L10n::t("Edit")];
|
||||
} else {
|
||||
$edpost = ["editpost/" . $item['id'], L10n::t("Edit")];
|
||||
}
|
||||
}
|
||||
$dropping = in_array($item['uid'], [0, local_user()]);
|
||||
} else {
|
||||
$edpost = false;
|
||||
|
@ -205,7 +207,7 @@ class Post extends BaseObject
|
|||
'delete' => $delete,
|
||||
];
|
||||
|
||||
if (!local_user() || ($item['uid'] == 0)) {
|
||||
if (!local_user()) {
|
||||
$drop = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue