mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
The delete function is now changed to the new function
This commit is contained in:
parent
000e6457b4
commit
2d66242b4f
8 changed files with 42 additions and 212 deletions
|
@ -15,6 +15,7 @@ use Friendica\Database\DBM;
|
|||
use Friendica\Database\DBStructure;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Module\Login;
|
||||
|
||||
require_once 'include/enotify.php';
|
||||
|
@ -492,7 +493,7 @@ function admin_page_deleteitem_post(App $a)
|
|||
// associated threads.
|
||||
$r = dba::select('item', ['id'], ['guid' => $guid]);
|
||||
while ($row = dba::fetch($r)) {
|
||||
drop_item($row['id'], false);
|
||||
Item::delete($row['id']);
|
||||
}
|
||||
dba::close($r);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue