diff --git a/package.json b/package.json
index b6f269d75..46490d7f7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "misskey",
- "version": "2024.11.0-pari.26",
+ "version": "2024.11.0-pari.27",
"codename": "nasubi",
"repository": {
"type": "git",
diff --git a/packages/backend/src/core/NoteDeleteService.ts b/packages/backend/src/core/NoteDeleteService.ts
index f00cc739b..4ecd2592b 100644
--- a/packages/backend/src/core/NoteDeleteService.ts
+++ b/packages/backend/src/core/NoteDeleteService.ts
@@ -68,13 +68,6 @@ export class NoteDeleteService {
await this.notesRepository.decrement({ id: note.replyId }, 'repliesCount', 1);
}
- if (note.renoteId && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length === 0)) {
- await this.notesRepository.findOneBy({ id: note.renoteId }).then(async (renote) => {
- if (!renote) return;
- if (renote.userId !== user.id) await this.notesRepository.decrement({ id: renote.id }, 'renoteCount', 1);
- });
- }
-
if (!quiet) {
this.globalEventService.publishNoteStream(note.id, 'deleted', {
deletedAt: deletedAt,
@@ -113,25 +106,15 @@ export class NoteDeleteService {
this.perUserNotesChart.update(user, note, false);
}
- if (note.renoteId && note.text) {
- // Decrement notes count (user)
- this.decNotesCountOfUser(user);
- } else if (!note.renoteId) {
- // Decrement notes count (user)
- this.decNotesCountOfUser(user);
- }
-
- if (this.userEntityService.isRemoteUser(user)) {
- this.federatedInstanceService.fetch(user.host).then(async i => {
- if (note.renoteId && note.text) {
+ if (this.meta.enableStatsForFederatedInstances) {
+ if (this.userEntityService.isRemoteUser(user)) {
+ this.federatedInstanceService.fetchOrRegister(user.host).then(async i => {
this.instancesRepository.decrement({ id: i.id }, 'notesCount', 1);
- } else if (!note.renoteId) {
- this.instancesRepository.decrement({ id: i.id }, 'notesCount', 1);
- }
- if (this.meta.enableChartsForFederatedInstances) {
- this.instanceChart.updateNote(i.host, note, false);
- }
- });
+ if (this.meta.enableChartsForFederatedInstances) {
+ this.instanceChart.updateNote(i.host, note, false);
+ }
+ });
+ }
}
}
diff --git a/packages/frontend/src/components/global/MkCustomEmoji.vue b/packages/frontend/src/components/global/MkCustomEmoji.vue
index d9cab9751..216cdc19e 100644
--- a/packages/frontend/src/components/global/MkCustomEmoji.vue
+++ b/packages/frontend/src/components/global/MkCustomEmoji.vue
@@ -25,17 +25,18 @@ SPDX-License-Identifier: AGPL-3.0-only