From: Jonny Tischbein Date: Tue, 6 Nov 2018 20:37:10 +0000 (+0100) Subject: Fix return url when dropping post loaded by update_* in non-frio X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=509dc29b2d065341dd27cdc3735a5fc06bacf8ac;p=friendica.git Fix return url when dropping post loaded by update_* in non-frio --- diff --git a/include/items.php b/include/items.php index f28f8f5718..9929f535f0 100644 --- a/include/items.php +++ b/include/items.php @@ -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