alpha
Login
or
Join now
jeremy.herve.bzh
/
skypress
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A calm place to write long-form, and publish it to the open social web.
skypress.blog/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
skypress
/
src
/
lib
/
social
/
at
migrate-off-isolated-block-editor
4 files
Jeremy Herve
Reader: hide social actions when the companion Bluesky post is gone
17d ago
5ede0ead
interactions.test.ts
Reader: hide social actions when the companion Bluesky post is gone The action bar rendered whenever a document carried a bskyPostRef, which only proves the reference exists — not that the post it points at is still live. A deleted post left Like/Repost/Quote/Reply buttons and a dead thread link that couldn't work. Add a client-side presence gate to the PostActions island: signed-in readers learn the post is gone from the authenticated getPosts (a null result), and signed-out readers from a new unauthenticated fetchPostExists() against the public AppView. The gate is optimistic (shows by default, hides only on a definitive 'gone') so a transient error never hides a live post. When gone, the whole block renders nothing — buttons, note, and thread link.
2 weeks ago
interactions.ts
Reader: hide social actions when the companion Bluesky post is gone The action bar rendered whenever a document carried a bskyPostRef, which only proves the reference exists — not that the post it points at is still live. A deleted post left Like/Repost/Quote/Reply buttons and a dead thread link that couldn't work. Add a client-side presence gate to the PostActions island: signed-in readers learn the post is gone from the authenticated getPosts (a null result), and signed-out readers from a new unauthenticated fetchPostExists() against the public AppView. The gate is optimistic (shows by default, hides only on a definitive 'gone') so a transient error never hides a live post. When gone, the whole block renders nothing — buttons, note, and thread link.
2 weeks ago
records.test.ts
Allow bare quote-reposts with no commentary The quote composer's placeholder said "Optional comment…" and buildQuote accepts empty text, but the submit button and onSubmitComposer guard both used validateReplyText, which rejected empty input for replies and quotes alike — so a bare quote-repost was impossible despite the UI saying the comment was optional. Give validateReplyText an allowEmpty option and pass it for the quote composer: replies stay non-empty, quotes may be posted with no commentary, and the 300-grapheme cap still applies to both.
2 weeks ago
records.ts
Allow bare quote-reposts with no commentary The quote composer's placeholder said "Optional comment…" and buildQuote accepts empty text, but the submit button and onSubmitComposer guard both used validateReplyText, which rejected empty input for replies and quotes alike — so a bare quote-repost was impossible despite the UI saying the comment was optional. Give validateReplyText an allowEmpty option and pass it for the quote composer: replies stay non-empty, quotes may be posted with no commentary, and the 300-grapheme cap still applies to both.
2 weeks ago