]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsubhubbub.php
Docs: add a note on adding `use` on theme.php
[friendica.git] / mod / pubsubhubbub.php
index 051ae2e84264d74e6678869f02f0620aaef26902..7f06f9db77d5fc3fdc32641a842a5659d915bd89 100644 (file)
@@ -135,8 +135,7 @@ function pubsubhubbub_init(App $a) {
                  dbesc($hub_callback));
 
                // delete old subscription if it exists
-               q("DELETE FROM `push_subscriber` WHERE `callback_url` = '%s'",
-                 dbesc($hub_callback));
+               dba::delete('push_subscriber', ['callback_url' => $hub_callback]);
 
                if ($subscribe) {
                        $last_update = DateTimeFormat::utcNow();