From 21ac55c5a5abfc6ba0f59e00aed00b6b3a93cad0 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 23 Dec 2021 17:55:12 +0100 Subject: [PATCH] fixes #1587 do not register a login activity for pwg.images.uploadAsync --- include/functions.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/functions.inc.php b/include/functions.inc.php index 907012af6..24e8c8cf0 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -530,6 +530,12 @@ function pwg_activity($object, $object_id, $action, $details=array()) { global $user; + // in case of uploadAsync, do not log the automatic login as an independant activity + if (isset($_REQUEST['method']) and 'pwg.images.uploadAsync' == $_REQUEST['method'] and 'login' == $action) + { + return; + } + $object_ids = $object_id; if (!is_array($object_id)) {