]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification-driver-lua: Do not push user again
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 25 Sep 2018 11:09:28 +0000 (14:09 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 14 Nov 2018 12:01:53 +0000 (14:01 +0200)
User is already pushed in tx begin, and can be stored there into the context.

src/plugins/push-notification/push-notification-driver-lua.c

index ae21a1fb037f855e940cadcb16a63ea3bea0c44f..3735f8f4760dd151e9c681e1a8cad778968f9973 100644 (file)
@@ -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);