From: Aki Tuomi Date: Tue, 25 Sep 2018 11:09:28 +0000 (+0300) Subject: push-notification-driver-lua: Do not push user again X-Git-Tag: 2.3.4~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb04cd2a62f6353514730efcf489b80e3facc1c5;p=thirdparty%2Fdovecot%2Fcore.git push-notification-driver-lua: Do not push user again User is already pushed in tx begin, and can be stored there into the context. --- diff --git a/src/plugins/push-notification/push-notification-driver-lua.c b/src/plugins/push-notification/push-notification-driver-lua.c index ae21a1fb03..3735f8f476 100644 --- a/src/plugins/push-notification/push-notification-driver-lua.c +++ b/src/plugins/push-notification/push-notification-driver-lua.c @@ -388,11 +388,8 @@ push_notification_driver_lua_call(struct dlua_push_notification_context *ctx, } else i_unreached(); - /* finally push user too, makes everything easier */ - dlua_push_mail_user(ctx->script, user); - /* perform call */ - if ((luaerr = lua_pcall(ctx->script->L, 3, 0, 0)) != 0) { + if ((luaerr = lua_pcall(ctx->script->L, 2, 0, 0)) != 0) { i_error("push_notification_lua: %s", lua_tostring(ctx->script->L, -1)); lua_pop(ctx->script->L, 1);