commit missed changes
This commit is contained in:
parent
ea80af9243
commit
57511f26d9
3 changed files with 4 additions and 13 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue