diff options
author | Mario <mario@mariovavti.com> | 2020-11-13 09:26:04 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-13 09:26:04 +0000 |
commit | b6e34695197191275d6d9f4f63f7f976bcf89a2d (patch) | |
tree | 285dc50b3fbd1916b1ce8f562256f1a4c8f7844b /Zotlabs | |
parent | 16071f300ee197bb8ef460e714e7eb5936622596 (diff) | |
download | volse-hubzilla-b6e34695197191275d6d9f4f63f7f976bcf89a2d.tar.gz volse-hubzilla-b6e34695197191275d6d9f4f63f7f976bcf89a2d.tar.bz2 volse-hubzilla-b6e34695197191275d6d9f4f63f7f976bcf89a2d.zip |
update to fix more broken hublocs and version bump
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Update/_1239.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1239.php b/Zotlabs/Update/_1239.php new file mode 100644 index 000000000..ed8de30bb --- /dev/null +++ b/Zotlabs/Update/_1239.php @@ -0,0 +1,27 @@ +<?php + +namespace Zotlabs\Update; + +class _1239 { + + function run() { + + dbq("START TRANSACTION"); + + // remove broken activitypub hubloc entries + $r = dbq("DELETE FROM hubloc WHERE hubloc_network = 'activitypub' and hubloc_callback = ''"); + + // remove broken hubloc entries from friendica + $r1 = dbq("DELETE FROM hubloc WHERE hubloc_hash = ''"); + + if($r && $r1) { + dbq("COMMIT"); + return UPDATE_SUCCESS; + } + + dbq("ROLLBACK"); + return UPDATE_FAILED; + + } + +} |