diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
| commit | 0ede390fefb4aae460deccc09755af85e5af6002 (patch) | |
| tree | a3d86468bd6ef53e206382a2812eb74e2039ccc5 /src/services/note/create.ts | |
| parent | Fix #4721 Fix #4722 (diff) | |
| download | sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.gz sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.bz2 sharkey-0ede390fefb4aae460deccc09755af85e5af6002.zip | |
Refactor
Diffstat (limited to 'src/services/note/create.ts')
| -rw-r--r-- | src/services/note/create.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 8c85a5c275..02e33d6789 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -253,7 +253,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N deliverNoteToMentionedRemoteUsers(mentionedUsers, user, noteActivity); } - const profile = await UserProfiles.findOne({ userId: user.id }).then(ensure); + const profile = await UserProfiles.findOne(user.id).then(ensure); // If has in reply to note if (data.reply) { |