]> git.mxchange.org Git - friendica.git/commitdiff
Fix return url when dropping post loaded by update_* in non-frio
authorJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 6 Nov 2018 20:37:10 +0000 (21:37 +0100)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 6 Nov 2018 20:37:10 +0000 (21:37 +0100)
include/items.php

index f28f8f57189ba321a12633c54d563f18e83226f6..9929f535f02a7ea0a2c0a81f69e058b2c239ee91 100644 (file)
@@ -410,6 +410,10 @@ function drop_item($id, $return = '')
                Item::deleteForUser(['id' => $item['id']], local_user());
 
                $return_url = hex2bin($return);
+
+               // removes update_* from return_url to ignore Ajax refresh
+               $return_url = str_replace("update_", "", $return_url);
+
                if (empty($return_url) || strpos($return_url, 'display') !== false) {
                        $a->internalRedirect('network');
                        //NOTREACHED