function getRelatedDumps
getRelatedDumps(
dumpId: string,
requestingUserId?: string
): Dump[]

Returns the dumps linked to or from dumpId, newest first and at most 20, without the private ones the requesting user can't see. It doesn't check dumpId itself: GET /api/dumps/:dumpId/related does that first.

Parameters

dumpId: string
optional
requestingUserId: string

Return Type

Usage

import { getRelatedDumps } from "api/services/backlink-service.ts";