fix: filter plugins should have access to idService in order to calculate account age

This commit is contained in:
Peter Cai 2024-02-19 00:23:36 +01:00
parent 4b9179a4c4
commit d99d116c02

View file

@ -157,7 +157,8 @@ type NoteFilterPluginContext = {
data: Option;
user: MiUser;
mentionedUsers: MiUser[];
usersRepository: UsersRepository;
remoteUserResolveService: RemoteUserResolveService;
idService: IdService;
}
// END comfy.social
@ -412,6 +413,7 @@ export class NoteCreateService implements OnApplicationShutdown {
user: user,
mentionedUsers: mentionedUsers,
remoteUserResolveService: this.remoteUserResolveService,
idService: this.idService,
});
if (filterResult.verdict) {