diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2024-04-14 10:23:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-14 10:23:48 +0900 |
| commit | 8c5d9a6295ab506b935bbd5856894239997a8158 (patch) | |
| tree | b7a61619ae64e6f7a97a34f341223f174078b93a /packages/backend/src/server/ActivityPubServerService.ts | |
| parent | fix(backend): FileServerServiceでレンジリクエストの場合に適切... (diff) | |
| download | sharkey-8c5d9a6295ab506b935bbd5856894239997a8158.tar.gz sharkey-8c5d9a6295ab506b935bbd5856894239997a8158.tar.bz2 sharkey-8c5d9a6295ab506b935bbd5856894239997a8158.zip | |
fix(backend): incorrect logic for determining whether Quote or not (#13700)
* fix(backend): incorrect logic for determining whether Quote or not
* Update CHANGELOG.md
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/server/ActivityPubServerService.ts')
| -rw-r--r-- | packages/backend/src/server/ActivityPubServerService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 60366dd5c2..3255d64621 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -28,7 +28,7 @@ import { UtilityService } from '@/core/UtilityService.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { bindThis } from '@/decorators.js'; import { IActivity } from '@/core/activitypub/type.js'; -import { isPureRenote } from '@/misc/is-pure-renote.js'; +import { isQuote, isRenote } from '@/misc/is-renote.js'; import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions, FastifyBodyParser } from 'fastify'; import type { FindOptionsWhere } from 'typeorm'; @@ -91,7 +91,7 @@ export class ActivityPubServerService { */ @bindThis private async packActivity(note: MiNote): Promise<any> { - if (isPureRenote(note)) { + if (isRenote(note) && !isQuote(note)) { const renote = await this.notesRepository.findOneByOrFail({ id: note.renoteId }); return this.apRendererService.renderAnnounce(renote.uri ? renote.uri : `${this.config.url}/notes/${renote.id}`, note); } |