mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 15:15:20 +00:00
26 lines
349 B
PHP
26 lines
349 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Update;
|
|
|
|
class _1219 {
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
}
|