From 0eb84fe8745fb3aa4c5387a99d0dbf3174f45b75 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jul 2019 16:55:33 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/page-push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/page-push.ts b/src/server/api/endpoints/page-push.ts index f5e1a4d1e..3af9ff50f 100644 --- a/src/server/api/endpoints/page-push.ts +++ b/src/server/api/endpoints/page-push.ts @@ -38,7 +38,7 @@ export default define(meta, async (ps, user) => { throw new ApiError(meta.errors.noSuchPage); } - publishMainStream(user.id, 'pageEvent', { + publishMainStream(page.userId, 'pageEvent', { pageId: ps.pageId, event: ps.event, var: ps.var,