Skip to main content
Home
This release is a pre-release — the latest non-prerelease version of @fedify/fedify is 1.5.1. Jump to this version

@fedify/fedify@1.6.0-dev.757+7fa54fbc
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
94%
Published
3 weeks ago (1.6.0-dev.757+7fa54fbc)
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>

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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

pnpm i jsr:@fedify/fedify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn add jsr:@fedify/fedify
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

npx 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";