mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-08 01:33:57 +09:00
Refactoring
This commit is contained in:
@ -36,9 +36,7 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||
// Fetch files
|
||||
// forEach だと途中でエラーなどがあっても return できないので
|
||||
// 敢えて for を使っています。
|
||||
for (let i = 0; i < mediaIds.length; i++) {
|
||||
const mediaId = mediaIds[i];
|
||||
|
||||
for (const mediaId of mediaIds) {
|
||||
// Fetch file
|
||||
// SELECT _id
|
||||
const entity = await DriveFile.findOne({
|
||||
@ -188,7 +186,7 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||
}
|
||||
});
|
||||
|
||||
let mentions = [];
|
||||
const mentions = [];
|
||||
|
||||
function addMention(mentionee, type) {
|
||||
// Reject if already added
|
||||
|
Reference in New Issue
Block a user