mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-05 10:18:38 +09:00
Improve readability
This commit is contained in:
parent
db065965f9
commit
c45204e4cc
@ -13,7 +13,7 @@ module.exports = me => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
s.event.on('mention', post => {
|
s.event.on('mention', post => {
|
||||||
const n = new Notification(post.user.name + "さんから:", {
|
const n = new Notification(`${post.user.name}さんから:`, {
|
||||||
body: getPostSummary(post),
|
body: getPostSummary(post),
|
||||||
icon: post.user.avatar_url + '?thumbnail&size=64'
|
icon: post.user.avatar_url + '?thumbnail&size=64'
|
||||||
});
|
});
|
||||||
@ -21,7 +21,7 @@ module.exports = me => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
s.event.on('reply', post => {
|
s.event.on('reply', post => {
|
||||||
const n = new Notification(post.user.name + "さんから返信:", {
|
const n = new Notification(`${post.user.name}さんから返信:`, {
|
||||||
body: getPostSummary(post),
|
body: getPostSummary(post),
|
||||||
icon: post.user.avatar_url + '?thumbnail&size=64'
|
icon: post.user.avatar_url + '?thumbnail&size=64'
|
||||||
});
|
});
|
||||||
@ -29,7 +29,7 @@ module.exports = me => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
s.event.on('quote', post => {
|
s.event.on('quote', post => {
|
||||||
const n = new Notification(post.user.name + "さんが引用:", {
|
const n = new Notification(`${post.user.name}さんが引用:`, {
|
||||||
body: getPostSummary(post),
|
body: getPostSummary(post),
|
||||||
icon: post.user.avatar_url + '?thumbnail&size=64'
|
icon: post.user.avatar_url + '?thumbnail&size=64'
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user