fix cherry-pick error
This commit is contained in:
parent
b48e916b4a
commit
f609c1cf11
2 changed files with 3 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ export class AccountMoveService {
|
|||
// Set the old account's following and followers counts to 0.
|
||||
// TODO use CollapsedQueueService when merged
|
||||
await this.usersRepository.update({ id: oldAccount.id }, { followersCount: 0, followingCount: 0 });
|
||||
await this.internalEventService.emit('userUpdated', { id: oldAccount.id });
|
||||
await this.internalEventService.emit(oldAccount.host == null ? 'localUserUpdated' : 'remoteUserUpdated', { id: oldAccount.id });
|
||||
|
||||
// Decrease following counts of local followers by 1.
|
||||
// TODO use CollapsedQueueService when merged
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ import { verifyFieldLinks } from '@/misc/verify-field-link.js';
|
|||
import { isRetryableError } from '@/misc/is-retryable-error.js';
|
||||
import { renderInlineError } from '@/misc/render-inline-error.js';
|
||||
import { IdentifiableError } from '@/misc/identifiable-error.js';
|
||||
import { QueueService } from '@/core/QueueService.js';
|
||||
import { getApId, getApType, isActor, isCollection, isCollectionOrOrderedCollection, isPropertyValue } from '../type.js';
|
||||
import { ApLoggerService } from '../ApLoggerService.js';
|
||||
import { extractApHashtags } from './tag.js';
|
||||
|
|
@ -121,6 +122,7 @@ export class ApPersonService implements OnModuleInit {
|
|||
private readonly apUtilityService: ApUtilityService,
|
||||
private readonly idService: IdService,
|
||||
private readonly timeService: TimeService,
|
||||
private readonly queueService: QueueService,
|
||||
|
||||
apLoggerService: ApLoggerService,
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue