streams/Zotlabs/Update/_1219.php
2021-12-03 14:01:39 +11:00

27 lines
450 B
PHP

<?php
namespace Zotlabs\Update;
class _1219
{
public function run()
{
q("START TRANSACTION");
$r = q(
"DELETE FROM xchan WHERE
xchan_hash like '%s' AND
xchan_network = 'activitypub'",
dbesc(z_root()) . '%'
);
if ($r) {
q("COMMIT");
return UPDATE_SUCCESS;
} else {
q("ROLLBACK");
return UPDATE_FAILED;
}
}
}