summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShittyKopper <shittykopper@w.on-t.work>2024-05-02 02:37:59 +0300
committerShittyKopper <shittykopper@w.on-t.work>2024-05-02 02:37:59 +0300
commite333283905d2fd25f2fcfbe449d4fa05bd85d09c (patch)
treea3ee7e24495b51ef0f485476dcb68c57fee29821
parentmerge: hide images/videos in og cards, when under a CW - fixes #487 (!488) (diff)
downloadsharkey-e333283905d2fd25f2fcfbe449d4fa05bd85d09c.tar.gz
sharkey-e333283905d2fd25f2fcfbe449d4fa05bd85d09c.tar.bz2
sharkey-e333283905d2fd25f2fcfbe449d4fa05bd85d09c.zip
Send default reactions as Like activities to Iceshrimp.NET instances
-rw-r--r--packages/backend/src/core/activitypub/ApRendererService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts
index a84feffac6..bdf92edb2e 100644
--- a/packages/backend/src/core/activitypub/ApRendererService.ts
+++ b/packages/backend/src/core/activitypub/ApRendererService.ts
@@ -283,9 +283,10 @@ export class ApRendererService {
if (instance && instance.softwareName === 'mastodon') isMastodon = true;
if (instance && instance.softwareName === 'akkoma') isMastodon = true;
if (instance && instance.softwareName === 'pleroma') isMastodon = true;
+ if (instance && instance.softwareName === 'iceshrimp.net') isMastodon = true;
}
}
-
+
const object: ILike = {
type: 'Like',
id: `${this.config.url}/likes/${noteReaction.id}`,