commit missed changes

This commit is contained in:
Hazelnoot 2025-10-01 12:20:01 -04:00
parent ea80af9243
commit 57511f26d9
3 changed files with 4 additions and 13 deletions

View file

@ -966,12 +966,7 @@ export class NoteCreateService implements OnApplicationShutdown {
// eslint-disable-next-line prefer-const
let [followings, userListMemberships] = await Promise.all([
this.cacheService.getNonHibernatedFollowers(user.id),
this.userListMembershipsRepository.find({
where: {
userId: user.id,
},
select: ['userListId', 'userListUserId', 'withReplies'],
}),
this.cacheService.userListMembershipsCache.fetch(user.id).then(ms => ms.values().toArray()),
]);
if (note.visibility === 'followers') {

View file

@ -830,12 +830,7 @@ export class NoteEditService implements OnApplicationShutdown {
// eslint-disable-next-line prefer-const
let [followings, userListMemberships] = await Promise.all([
this.cacheService.getNonHibernatedFollowers(user.id),
this.userListMembershipsRepository.find({
where: {
userId: user.id,
},
select: ['userListId', 'userListUserId', 'withReplies'],
}),
this.cacheService.userListMembershipsCache.fetch(user.id).then(ms => ms.values().toArray()),
]);
if (note.visibility === 'followers') {

View file

@ -5,8 +5,9 @@
import { Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { captchaErrorCodes, CaptchaService, supportedCaptchaProviders } from '@/core/CaptchaService.js';
import { CaptchaService, supportedCaptchaProviders } from '@/core/CaptchaService.js';
import { ApiError } from '@/server/api/error.js';
import { captchaErrorCodes } from '@/misc/captcha-error.js';
export const meta = {
tags: ['admin', 'captcha'],