Skip to main content

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
a week ago (1.3.0)
method InboxContext.forwardActivity
InboxContext.forwardActivity(
forwarder:
SenderKeyPair
| SenderKeyPair[]
| { identifier: string; }
| { username: string; }
| { handle: string; }
,
recipients: Recipient | Recipient[],
): Promise<void>

Forwards a received activity to the recipients' inboxes. The forwarded activity will be signed in HTTP Signatures by the forwarder, but its payload will not be modified, i.e., Linked Data Signatures and Object Integrity Proofs will not be added. Therefore, if the activity is not signed (i.e., it has neither Linked Data Signatures nor Object Integrity Proofs), the recipient probably will not trust the activity.

Parameters

forwarder:
SenderKeyPair
| SenderKeyPair[]
| { identifier: string; }
| { username: string; }
| { handle: string; }

The forwarder's identifier or the forwarder's username or the forwarder's key pair(s).

recipients: Recipient | Recipient[]

The recipients of the activity.

optional
options: ForwardActivityOptions

Options for forwarding the activity.

Return Type

Promise<void>

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type InboxContext } from "@fedify/fedify";

---- OR ----

Import directly with a jsr specifier

import { type InboxContext } from "jsr:@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type InboxContext } from "@fedify/fedify";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type InboxContext } from "@fedify/fedify";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type InboxContext } from "@fedify/fedify";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type InboxContext } from "@fedify/fedify";