mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
remote deletion issue
This commit is contained in:
parent
9460058cce
commit
fe3d85fd67
2 changed files with 3499 additions and 3494 deletions
|
@ -2430,7 +2430,6 @@ class Libzot
|
||||||
dbesc(str_replace('/activity/', '/item/', $mid)),
|
dbesc(str_replace('/activity/', '/item/', $mid)),
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($r) {
|
if ($r) {
|
||||||
$stored = $r[0];
|
$stored = $r[0];
|
||||||
// we proved ownership in the sql query
|
// we proved ownership in the sql query
|
||||||
|
@ -2467,6 +2466,7 @@ class Libzot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($item_found) {
|
if ($item_found) {
|
||||||
if (intval($stored['item_deleted'])) {
|
if (intval($stored['item_deleted'])) {
|
||||||
logger('delete_imported_item: item was already deleted');
|
logger('delete_imported_item: item was already deleted');
|
||||||
|
@ -2502,7 +2502,7 @@ class Libzot
|
||||||
// Use phased deletion to set the deleted flag, call both tag_deliver and the notifier to notify downstream channels
|
// Use phased deletion to set the deleted flag, call both tag_deliver and the notifier to notify downstream channels
|
||||||
// and then clean up after ourselves with a cron job after several days to do the delete_item_lowlevel() (DROPITEM_PHASE2).
|
// and then clean up after ourselves with a cron job after several days to do the delete_item_lowlevel() (DROPITEM_PHASE2).
|
||||||
|
|
||||||
drop_item($post_id, DROPITEM_PHASE1);
|
drop_item($post_id, DROPITEM_PHASE1, uid: $uid);
|
||||||
tag_deliver($uid, $post_id);
|
tag_deliver($uid, $post_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6989
include/items.php
6989
include/items.php
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue