mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 02:46:43 -06:00
Update create.ts
This commit is contained in:
parent
31f36fa618
commit
a2ca8eba80
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get 'poll' parameter
|
// Get 'poll' parameter
|
||||||
const [poll, pollErr] = $(params.poll).optional.object()
|
const [poll, pollErr] = $(params.poll).optional.strict.object()
|
||||||
.have('choices', $().array('string')
|
.have('choices', $().array('string')
|
||||||
.unique()
|
.unique()
|
||||||
.range(2, 10)
|
.range(2, 10)
|
||||||
|
@ -221,7 +221,7 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||||
addMention(inReplyToPost.user_id, 'reply');
|
addMention(inReplyToPost.user_id, 'reply');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If $ is repost
|
// If it is repost
|
||||||
if (repost) {
|
if (repost) {
|
||||||
// Notify
|
// Notify
|
||||||
const type = text ? 'quote' : 'repost';
|
const type = text ? 'quote' : 'repost';
|
||||||
|
@ -229,7 +229,7 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||||
post_id: post._id
|
post_id: post._id
|
||||||
});
|
});
|
||||||
|
|
||||||
// If $ is quote repost
|
// If it is quote repost
|
||||||
if (text) {
|
if (text) {
|
||||||
// Add mention
|
// Add mention
|
||||||
addMention(repost.user_id, 'quote');
|
addMention(repost.user_id, 'quote');
|
||||||
|
|
Loading…
Reference in a new issue