mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 15:07:36 -07:00
Merge branch 'develop'
This commit is contained in:
commit
f5c502a407
4 changed files with 11 additions and 3 deletions
|
@ -54,6 +54,12 @@ mongodb:
|
||||||
8. master ブランチに戻す
|
8. master ブランチに戻す
|
||||||
9. enjoy
|
9. enjoy
|
||||||
|
|
||||||
|
11.17.1 (2019/05/20)
|
||||||
|
--------------------
|
||||||
|
### 🐛Fixes
|
||||||
|
* トークの通知インジケーターが点灯し続ける問題を修正
|
||||||
|
* ユーザーグループの読み込みでエラーになることがある問題を修正
|
||||||
|
|
||||||
11.17.0 (2019/05/19)
|
11.17.0 (2019/05/19)
|
||||||
--------------------
|
--------------------
|
||||||
### 注意
|
### 注意
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "11.17.0",
|
"version": "11.17.1",
|
||||||
"codename": "daybreak",
|
"codename": "daybreak",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -114,7 +114,7 @@ export default define(meta, async (ps, user) => {
|
||||||
|
|
||||||
// Mark all as read
|
// Mark all as read
|
||||||
if (ps.markAsRead) {
|
if (ps.markAsRead) {
|
||||||
readUserMessagingMessage(user.id, recipient.id, messages.map(x => x.id));
|
readUserMessagingMessage(user.id, recipient.id, messages.filter(m => m.recipientId === user.id).map(x => x.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
return await Promise.all(messages.map(message => MessagingMessages.pack(message, user, {
|
return await Promise.all(messages.map(message => MessagingMessages.pack(message, user, {
|
||||||
|
|
|
@ -32,7 +32,9 @@ export default define(meta, async (ps, me) => {
|
||||||
|
|
||||||
const joinings = await UserGroupJoinings.find({
|
const joinings = await UserGroupJoinings.find({
|
||||||
userId: me.id,
|
userId: me.id,
|
||||||
userGroupId: Not(In(ownedGroups.map(x => x.id)))
|
...(ownedGroups.length > 0 ? {
|
||||||
|
userGroupId: Not(In(ownedGroups.map(x => x.id)))
|
||||||
|
} : {})
|
||||||
});
|
});
|
||||||
|
|
||||||
return await Promise.all(joinings.map(x => UserGroups.pack(x.userGroupId)));
|
return await Promise.all(joinings.map(x => UserGroups.pack(x.userGroupId)));
|
||||||
|
|
Loading…
Reference in a new issue