mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:10:13 +00:00
Fixes several database errors, removes "relation" handling
This commit is contained in:
parent
de90f5351f
commit
99a145f7cf
11 changed files with 39 additions and 176 deletions
|
@ -318,14 +318,6 @@ class Item
|
|||
|
||||
Post\DeliveryData::delete($item['uri-id']);
|
||||
|
||||
// When the permission set will be used in photo and events as well,
|
||||
// this query here needs to be extended.
|
||||
// @todo Currently deactivated. We need the permission set in the deletion process.
|
||||
// This is a reminder to add the removal somewhere else.
|
||||
//if (!empty($item['psid']) && !self::exists(['psid' => $item['psid'], 'deleted' => false])) {
|
||||
// DBA::delete('permissionset', ['id' => $item['psid']], ['cascade' => false]);
|
||||
//}
|
||||
|
||||
// If it's the parent of a comment thread, kill all the kids
|
||||
if ($item['gravity'] == GRAVITY_PARENT) {
|
||||
self::markForDeletion(['parent' => $item['parent'], 'deleted' => false], $priority);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue