mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-10 01:24:08 +02:00
Add mutingType field to Muting model and update related code
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -108,7 +108,8 @@ export class NotificationService implements OnApplicationShutdown {
|
||||
}
|
||||
|
||||
const mutings = await this.cacheService.userMutingsCache.fetch(notifieeId);
|
||||
if (mutings.has(notifierId)) {
|
||||
const muting = mutings.get(notifierId);
|
||||
if (muting && muting.mutingType === 'all') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user