From 9e5e3c2f2e6d8527a6bdd63714b85f6407d12583 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 5 Aug 2018 13:44:44 +0900 Subject: [PATCH] :v: --- src/server/api/service/github.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/api/service/github.ts b/src/server/api/service/github.ts index 9024740a96..c8d588eaaf 100644 --- a/src/server/api/service/github.ts +++ b/src/server/api/service/github.ts @@ -11,7 +11,7 @@ const handler = new EventEmitter(); let bot: IUser; -const post = async (text: string) => { +const post = async (text: string, home = true) => { if (bot == null) { const account = await User.findOne({ usernameLower: config.github_bot.username.toLowerCase() @@ -25,7 +25,7 @@ const post = async (text: string) => { } } - createNote(bot, { text, visibility: 'home' }); + createNote(bot, { text, visibility: home ? 'home' : 'public' }); }; // Init router @@ -130,7 +130,7 @@ handler.on('issue_comment', event => { handler.on('watch', event => { const sender = event.sender; - post(`⭐️ Starred by **${sender.login}** ⭐️`); + post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false); }); handler.on('fork', event => {