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 RequestContext.getActor
RequestContext.getActor(identifier: string): Promise<Actor | null>

Gets an Actor object for the given identifier.

Parameters

identifier: string

The actor's identifier.

Return Type

Promise<Actor | null>

The actor object, or null if the actor is not found.

Throws

Error

If no actor dispatcher is available.

Add Package

deno add jsr:@fedify/fedify

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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