Methods
(async) unrollThread()
publish the post to go up the stream
check all the posts below and above the threads
Type Definitions
ActivityPubRouter
Express.js router for handling incoming ActivityPub requests.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
processActivity |
function | Route handler for processing incoming ActivityPub requests. |
Example
// Example usage:
import { router as activityPubRouter } from './activityPubRouter';
app.use('/activitypub', activityPubRouter);
OutboxRouter
Express.js router for handling requests related to the user's outbox.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
getOutbox |
function | Route handler for retrieving the user's outbox posts. |
Example
// Example usage:
import { router as outboxRouter } from './outboxRouter';
app.use('/outbox', outboxRouter);
UserProfileRouter
Express.js router for handling user profile-related routes.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
getProfile |
function | Route handler for retrieving a user profile by name. |
getFollowers |
function | Route handler for retrieving followers of a user profile by name. |
- Source:
Example
// Example usage:
const userProfileRouter = express.Router();
userProfileRouter.get('/:name', userProfileHandlers.getProfile);
userProfileRouter.get('/:name/followers', userProfileHandlers.getFollowers);
app.use('/profiles', userProfileRouter);
WebfingerRouter
Express.js router for handling webfinger-related routes.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
getResource |
function | Route handler for retrieving a webfinger resource. |
- Source:
Example
// Example usage:
import { router as webfingerRouter } from './webfingerRouter';
app.use('/webfinger', webfingerRouter);