forked from mirrors/misskey
fix: filter plugins should have access to idService in order to calculate account age
This commit is contained in:
parent
4b9179a4c4
commit
d99d116c02
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue