Compare commits

...

2 commits

Author SHA1 Message Date
Marie
e89f4ff3c8
fix: boosts not being muted when muting thread
Closes #347
2024-01-25 19:39:41 +01:00
Marie
c1d38b02d7 fix(ci): lint failing to build bubble game 2024-01-25 19:26:22 +01:00
2 changed files with 11 additions and 2 deletions

View file

@ -90,6 +90,6 @@ jobs:
if: ${{ matrix.workspace == 'backend' }} if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter misskey-reversi run build:tsc - run: pnpm --filter misskey-reversi run build:tsc
if: ${{ matrix.workspace == 'backend' }} if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter misskey-bubble-game run build:tsc - run: pnpm --filter misskey-bubble-game run build
if: ${{ matrix.workspace == 'backend' }} if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter ${{ matrix.workspace }} run typecheck - run: pnpm --filter ${{ matrix.workspace }} run typecheck

View file

@ -816,8 +816,17 @@ export class NoteCreateService implements OnApplicationShutdown {
// Notify // Notify
if (data.renote.userHost === null) { if (data.renote.userHost === null) {
const isThreadMuted = await this.noteThreadMutingsRepository.exist({
where: {
userId: data.renote.userId,
threadId: data.renote.threadId ?? data.renote.id,
},
});
if (!isThreadMuted) {
nm.push(data.renote.userId, type); nm.push(data.renote.userId, type);
} }
}
// Publish event // Publish event
if ((user.id !== data.renote.userId) && data.renote.userHost === null) { if ((user.id !== data.renote.userId) && data.renote.userHost === null) {