From 9fe6fdaba6808686dca40dbc972ca1de61fcffd9 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 25 Sep 2018 14:09:28 +0300 Subject: [PATCH] push-notification-driver-lua: Do not push user again User is already pushed in tx begin, and can be stored there into the context. --- src/plugins/push-notification/push-notification-driver-lua.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); -- 2.47.3