Bookmarks API: supplying custom content (possible bug) and wish-list

Okay, so I’m back tweaking my client and right now I’m focusing on bookmark improvements. Now back in May, the news account posted that the Micropub API was improved and added in a `bookmark-content` parameter. Now, after that was posted I tried it out and it worked and then I wandered away :laughing:

Now that I’m back, it doesn’t appear to be working

This is how I’m setting it up:

const formBody = new URLSearchParams();
formBody.append("h", "entry");
formBody.append("bookmark-of", url);
if(content) {
  formBody.append("bookmark-content", content);
}

That should work, right? (Note: my code works fine without the content being set and ignores it when it is set). I do still have a bookmark with custom content that I can view, so I think at some point this broke in the Micropub API.

Next… I did notice when supplying custom content from before (and now), it doesn’t trigger an archive or the AI summary. I’m not sure if that’s intentional or not. But personally, I’d like it to archive my custom content and summarize it. If the custom content is long, then I can truncate the `content_html` and navigate to the archived version if needed. Also, (and I might be wrong on this) I think you need an archived version to use for highlighting. I’d love to highlight the custom content.

Now… more wish-list items :slight_smile:

  • Paging and search parameters on the bookmarks api
  • Paging and search parameters on the highlights api
  • Endpoint that returns all highlights associated with a bookmark
  • Additional meta-data for if a bookmark has highlights (highlight_count?)
  • Ability to customize the bookmark name
  • Ability to update the bookmark avatar

Whew.

Anyways, I do love how much Micro.blog let us do with the API.

Doh!

Nevermind, I see my issue. So you can ignore the bug part and the part about it not archiving (and you can make highlights, yay!). I was expecting the content to come over the `content_html` and instead it is in the Reader screen.

It doesn’t summarize it though