Minor Changes
-
#3394
38d200dThanks @ttmx! - Adds thebylines:readplugin capability, which lets plugins read public byline profiles and the bylines credited on content entries throughctx.bylines.ctx.bylinesprovidesget()and cursor-paginatedlist()for profiles, plusgetEntriesBylines()for credits.getEntriesBylines()resolves up to 100 entries of one collection in a single call, so a search indexer or feed plugin can attach author names to a page ofctx.content.list()results:const page = await ctx.content.list("posts", { limit: 100 }); const credits = await ctx.bylines.getEntriesBylines( "posts", page.items.map((entry) => entry.id), );
Credits match what the site renders: the credits assigned in the editor, or the author's linked byline, marked
source: "inferred", when an entry has none. They resolve at the entry's own locale. Profiles omit the linked user account, guest flag, and byline custom field values.The capability is independent of
content:readandusers:read. It is available to native plugins and to sandboxed plugins on Cloudflare Worker Loader and Node.js workerd. Installation and update consent list it as a new permission.
Patch Changes
- Updated dependencies [
0371107,148ff3e,43565ef,2987a51,03b6b3b,03b6b3b,2410395,2bce20c,8b1b585,9f721fb,ff61df9,ff61df9,54ef82f,aa054ae,e59d9b4,530dabf,c36d974,22575b7,09a5bb0,7097874,1ee3c4f,38d200d,38d200d,ccf24b4,0993a3d,4d6a87b,c23009d,895fb69,b869811,36a73e3,bb06e3f,7a8d368,9358ede,a3421ef,c0c0d73,f9cc7b4,f796444,d8ea3fc,b2ce32c]:- emdash@0.42.0