$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != 1;
- if (local_user() && 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")];
+ 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 {
'delete' => $delete,
];
- if (!local_user() || ($item['uid'] == 0)) {
+ if (!local_user()) {
$drop = false;
}