add at:// prefix
This commit is contained in:
parent
bc753388c3
commit
2bff86cb4e
@ -48,7 +48,7 @@ Once the custom algorithms feature launches, you'll be able to publish your feed
|
|||||||
|
|
||||||
## Running the Server
|
## Running the Server
|
||||||
|
|
||||||
Install dependencies with `yarn` and then run the server with `yarn start`. This will start the server on port 3000, or what's defined in `.env`. You can then watch the firehose output in the console and access the output of the default custom ALF feed at [http://localhost:3000/xrpc/app.bsky.feed.getFeedSkeleton?feed=did:example:alice/app.bsky.feed.generator/whats-alf](http://localhost:3000/xrpc/app.bsky.feed.getFeedSkeleton?feed=did:example:alice/app.bsky.feed.generator/whats-alf).
|
Install dependencies with `yarn` and then run the server with `yarn start`. This will start the server on port 3000, or what's defined in `.env`. You can then watch the firehose output in the console and access the output of the default custom ALF feed at [http://localhost:3000/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://did:example:alice/app.bsky.feed.generator/whats-alf](http://localhost:3000/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://did:example:alice/app.bsky.feed.generator/whats-alf).
|
||||||
|
|
||||||
## Some Details
|
## Some Details
|
||||||
|
|
||||||
|
@ -5,7 +5,9 @@ import { validateAuth } from './auth'
|
|||||||
|
|
||||||
export default function (server: Server, ctx: AppContext) {
|
export default function (server: Server, ctx: AppContext) {
|
||||||
server.app.bsky.feed.getFeedSkeleton(async ({ params, req }) => {
|
server.app.bsky.feed.getFeedSkeleton(async ({ params, req }) => {
|
||||||
if (params.feed !== 'did:example:alice/app.bsky.feed.generator/whats-alf') {
|
if (
|
||||||
|
params.feed !== 'at://did:example:alice/app.bsky.feed.generator/whats-alf'
|
||||||
|
) {
|
||||||
throw new InvalidRequestError(
|
throw new InvalidRequestError(
|
||||||
'Unsupported algorithm',
|
'Unsupported algorithm',
|
||||||
'UnsupportedAlgorithm',
|
'UnsupportedAlgorithm',
|
||||||
|
Loading…
Reference in New Issue
Block a user