summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-18 19:47:57 +0000
committerHazelnoot <acomputerdog@gmail.com>2025-06-18 19:47:57 +0000
commit1fb20a3b0f4cf41f011459279dd32359d09d6f16 (patch)
tree96f4838a63e5deb39fa45b9ef7e21fd4b625b754 /packages/backend/src/core/NoteCreateService.ts
parentmerge: Check privacy settings in charts/user/following (resolves #1107) (!1124) (diff)
parentdon't publish null updated property (diff)
downloadsharkey-1fb20a3b0f4cf41f011459279dd32359d09d6f16.tar.gz
sharkey-1fb20a3b0f4cf41f011459279dd32359d09d6f16.tar.bz2
sharkey-1fb20a3b0f4cf41f011459279dd32359d09d6f16.zip
merge: Fix boosts showing as quote (!1126)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1126 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts13
1 files changed, 1 insertions, 12 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 0dd0a9b822..f4159facc3 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -731,7 +731,7 @@ export class NoteCreateService implements OnApplicationShutdown {
//#region AP deliver
if (!data.localOnly && this.userEntityService.isLocalUser(user)) {
trackTask(async () => {
- const noteActivity = await this.renderNoteOrRenoteActivity(data, note, user);
+ const noteActivity = await this.apRendererService.renderNoteOrRenoteActivity(note, user, { renote: data.renote });
const dm = this.apDeliverManagerService.createDeliverManager(user, noteActivity);
// メンションされたリモートユーザーに配送
@@ -875,17 +875,6 @@ export class NoteCreateService implements OnApplicationShutdown {
}
@bindThis
- private async renderNoteOrRenoteActivity(data: Option, note: MiNote, user: MiUser) {
- if (data.localOnly) return null;
-
- const content = this.isRenote(data) && !this.isQuote(data)
- ? this.apRendererService.renderAnnounce(data.renote.uri ? data.renote.uri : `${this.config.url}/notes/${data.renote.id}`, note)
- : this.apRendererService.renderCreate(await this.apRendererService.renderNote(note, user, false), note);
-
- return this.apRendererService.addContext(content);
- }
-
- @bindThis
private index(note: MiNote) {
if (note.text == null && note.cw == null) return;