source: Klonkt/CHANGELOG.md@ 0cea12b

main
Last change on this file since 0cea12b was 0cea12b, checked in by Robin <roboburr@…>, 7 weeks ago

Feature: owner inbox read over C2S (GET, bearer-gated)

GET /ap/users/:slug/inbox with a bearer scoped to that site returns the
recent timeline (accounts the owner follows) as an OrderedCollection of
Create(Note) items with content, url, published, sensitive and summary
(CW). Anyone else gets 403: the inbox stays write-only for the public.
This is the missing read half for a connected app's unified feed
(Shaer HomeBase, bead shaer-n4h); same gate pattern as the owner
followers/following read.

Changed files:
src/routes/activitypub.js

  • GET /ap/users/:slug/inbox (owner only) mapping ap_timeline rows

New file:
test/c2s-inbox.test.js

  • data-path coverage for the fields the mapping relies on

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

  • Property mode set to 100644
File size: 24.3 KB
Line 
1# Changelog — Klonkt
2
3All notable changes to Klonkt. Newest at the top.
4Versions follow [SemVer](https://semver.org/).
5
6## [Unreleased]
7
8### Added
9- **The owner can read their inbox over C2S.** A GET on the inbox with the
10 account's own bearer returns recent inbound posts (the accounts you follow)
11 as Create(Note) items, so a connected app (Shaer) can build a unified feed.
12 For everyone else the inbox stays write-only.
13- **"Load more" on the feeds.** Solo (home), Cirkel, News and Messages now page
14 in blocks of 72 with a "Load more" button instead of a hard cap, so older
15 items are reachable. 72 divides by 2, 3 and 4, so the grid views always end on
16 a full row. Appending is instant (htmx), the Messages search and filters keep
17 working across pages, and the button disappears on the last page.
18- **"Interact via the fediverse" next to Share.** On a post, visitors get a
19 button beside Share to reply, like or boost from their own fediverse server
20 (it asks for your server, then hands off to your instance). Hidden for the
21 site owner and when federation is off.
22- **FEDERATION.md (FEP-67ff).** The repository root now documents what Klonkt
23 speaks on the wire: ActivityPub S2S and C2S, WebFinger, HTTP Signatures,
24 NodeInfo 2.1, OAuth (PKCE), the activities and object types it sends and
25 receives, the Mastodon-compatible extension terms, and the FEPs it supports or
26 tracks. Helps other implementations interoperate.
27- **Messages: your poll finished.** When one of your own polls closes, Messages
28 shows a "poll finished" item with the final result: a bar per option with its
29 percentage, and the number of voters. It lives under the Activity chip and is
30 searchable like the rest.
31- **Messages: sharper filters and a search box.** The filter chips are now
32 Messages (@mentions and private/DM replies), Conversations (public replies),
33 Activity (likes, boosts, follows), Moderation (reports) and Sent, next to All.
34 A search box filters the list by sender and message text, and combines with
35 the active chip. All client-side, instant.
36- **The reply editor got a visual clean-up.** Its toolbar now uses the same
37 icon set and 32px buttons as the post editor, with active formatting shown
38 filled in the accent colour, a framed editor box with a focus ring, and
39 tidier language, mention and attachment chips. One editor family across the
40 site.
41- **The reply editor shows who you are addressing (rich replies, phase 3).** A
42 "To:" bar above the editor lists the conversation partners (the author you
43 reply to plus the thread's earlier authors) as removable chips, instead of
44 cluttering your text with @mentions. Remove a chip and that person is no
45 longer mentioned, tagged or pinged; mentions you type yourself stay in the
46 text. Editing a sent reply keeps every co-mention intact.
47- **Editing a sent reply uses the rich editor too.** The edit forms on Messages
48 and the interact page open the same editor as new replies (formatting kept,
49 language adjustable, full-screen on phones). Attachments on the reply survive
50 an edit untouched.
51- **Media in replies (rich replies, phase 2).** Drop, paste or pick images,
52 audio and video straight into the reply editor (the paperclip works on
53 phones). Files upload to your own site, show as removable chips while you
54 write, travel as real attachments on the federated note, and render in your
55 thread. A media-only reply (no text) works too.
56- **Rich replies (phase 1).** Replying to fediverse comments (inline in the
57 thread and on the interact page) now uses a shared rich editor: bold, italic,
58 links, lists and quotes, plus a language picker for your reply (sent along as
59 the note's language map). On phones the editor opens as a full-screen compose
60 view, the pattern that actually works on mobile. Without JavaScript the plain
61 text box keeps working. Media in replies is the next phase.
62- **Revoke connected apps from your account page.** A "Connected apps" section
63 lists every app you authorized over OAuth (name, site, scope, last used) with
64 a Revoke button. Tokens you already granted show up too, since they were
65 always stored (hashed); the bearer itself is never kept, so revocation is keyed
66 on the token hash.
67- **The account owner can read their own followers and following over C2S.** The
68 `followers` and `following` collections stay count-only for the public
69 (privacy), but a request carrying a C2S bearer scoped to that site now returns
70 the real actor URIs, so an app (Shaer) can build a friends list. Anonymous
71 callers are unchanged.
72- **App access via OAuth 2.0 (ActivityPub Client-to-Server, phase 1).** Klonkt
73 now speaks the standard AP C2S auth handshake so native and web clients (the
74 Shaer apps first) can connect: dynamic client registration (RFC 7591), a
75 PKCE authorization-code flow with a consent screen that picks which of your
76 sites the app may post as, and bearer tokens (stored hashed, single-use
77 codes). The actor document advertises the OAuth and uploadMedia endpoints and
78 `/.well-known/oauth-authorization-server` (RFC 8414) exposes the metadata, so
79 clients discover everything instead of hardcoding paths. Public clients + PKCE
80 only, no client secrets.
81- **The outbox accepts posts from apps (C2S, phase 1 complete).** A
82 bearer-authenticated `POST` to `/ap/users/:slug/outbox` now drives your account
83 from a client: publish a note, reply, like, boost, follow, and undo any of
84 those. Activities are translated onto the same delivery machinery the web UI
85 uses; a bare Note is wrapped in a Create per the spec; content is sanitized;
86 the token is scoped to one site so it can't post as another. Note: this is
87 ActivityPub C2S, which the Shaer apps speak. Mastodon clients (Ivory etc.) use
88 Mastodon's own API and are not supported by this.
89
90### Fixed
91- **OAuth consent now hands off reliably to native apps.** After Allow/Deny, a
92 redirect to a native custom scheme (e.g. `com.klonkt.shaer:/oauth`) was a plain
93 302, which mobile browsers silently drop. The consent step now serves a tiny
94 interstitial for non-http redirect URIs that auto-forwards and offers an "Open
95 the app" tap link (a tap reliably launches the app on Android; iOS's web-auth
96 session intercepts either way). Web (http/https) clients still get a 302.
97- **Visitors can reply to the site owner's own comments.** The "reply via the
98 fediverse" button only appeared on comments from others; the site's own
99 comments in a thread offered visitors nothing, so you could not respond to
100 the author from your own instance.
101
102## [1.5.0] · 2026-07-18
103
104### Added
105- **Messages: your replies and notifications on one page.** A single Messages
106 tab replaces Replies and Notifications. One stream with filter chips (All,
107 Conversations, Activity, Sent): your own sent replies join the conversation
108 (with edit and delete), likes and boosts on the same post group into one line,
109 private replies carry a lock badge, and items new since your last visit get a
110 dot. The interact bookmarklet moved along. Old /fediverse and /notifications
111 links redirect to /messages.
112- **Connect: your following and followers on one page.** A single Connect tab
113 replaces the separate Following and Followers pages, showing each connection's
114 direction (following →, follower ←, mutual ↔) and, for accounts you deliver to,
115 when they were last reached. Accounts you can no longer reach move to a
116 collapsed "Unreachable" section for cleanup. Old /following and /followers
117 links redirect to /connect.
118- **Moderate incoming replies on your own posts.** As the site owner you can now
119 remove a reply from your thread (it stays removed: re-delivery and
120 thread-filling are blocked by a tombstone) and report it to its author's
121 server, straight from the thread. This also works for private replies, which
122 cannot be handled via the fediverse interact flow.
123
124### Fixed
125- **A boosted video post keeps its video in the Circle.** Boosting a video-only
126 post (Loops.video) stored it without its media, so the Circle showed a bare
127 text tile instead of a video thumbnail; re-boosting could even wipe the video
128 from an already-cached copy. Boosts now carry the full typed media, and a
129 refresh never erases cached media.
130- **The interact page title follows your language.** "Interacteer via de
131 fediverse" was hardcoded Dutch in the browser tab, even on an English site.
132- **The Apple Music icon looks like the Apple logo again.** The old icon was a
133 garbled shape.
134- **Statistics columns no longer jump around in the 30 and 90 day views.**
135 Columns without a date label collapsed slightly; every column now keeps its
136 label line.
137- **Private replies no longer show on the public post page.** A followers-only
138 or direct (DM) reply to your post was rendered in the public thread for
139 everyone. Incoming replies now record their fediverse addressing; the public
140 thread only shows public and unlisted replies. Private ones still reach you in
141 notifications, with the post they belong to.
142- **Bare video/audio embeds no longer overflow their column.** A `.webm` /
143 `.mp4` / `.mp3` player now fits the content width like the iframe embeds do;
144 the width rule previously covered only `iframe`.
145
146## [1.4.0] · 2026-07-14
147
148### Added
149- **Followers list with delivery health.** A new Fediverse tab shows who follows
150 you and when each account was last reached, so dead accounts stand out and you
151 can remove them after a check.
152- **Bare media links play inline.** A plain `.webm`, `.mp4` or `.mp3` link now
153 renders a native player instead of a dead link.
154- **Hashtags, links and mentions are clickable on your site too.** `#tags`, URLs
155 and `@mentions` in a post become links on the site itself, not only on the
156 federated copy. Mentions are resolved once when you save, so pages stay fast.
157
158### Fixed
159- **Replies, comment deletes and reply edits always arrive.** They used to be
160 dropped when a server was briefly unreachable; they now go through the retry
161 queue like posts do.
162- **Video thumbnails for more videos.** Covers from videos with their metadata at
163 the end of the file (Loops.video, phone exports) now get a thumbnail instead of
164 none.
165- **A video-only cover shows a poster on the post page.** It no longer renders
166 blank in the Solo view.
167- **The installed app no longer shows old data on a shaky start.** A cold launch
168 on a poor connection refreshes instead of showing a stale page.
169- **The Updates page follows your branch.** On the stable branch you no longer
170 see main's changes flagged as "latest".
171
172## [1.3.5] — 2026-07-04
173
174### Fixed
175- **Polls keep their cover art when boosted.** A poll with music or an embed was
176 federating without its cover, so a boosted poll showed a blank tile; the cover
177 now travels with it.
178- **The Android app's Updates page shows what's actually installable.** It read
179 the newest release branch, which could be ahead of the phone build for a short
180 while — pressing update then reinstalled the same version. It now reads the
181 version of the phone bundle itself.
182
183## [1.3.4] — 2026-07-04
184
185### Fixed
186- **Boosts that lost their cover get it back automatically.** Posts you boosted
187 before the cover fix were cached without their artwork; they are refreshed
188 once on the next restart. If a post's home server is briefly unreachable at
189 that moment, it is retried on the next restarts instead of being skipped for
190 good. Boosting a post again now also refreshes its cached copy (cover,
191 content) — from the feed as well as the interact page.
192
193## [1.3.3] — 2026-07-03
194
195### Fixed
196- **Boosted music posts keep their cover.** When you boosted a track from
197 someone you don't follow, the cover art went missing; it now shows, just like
198 for people you do follow.
199
200## [1.3.2] — 2026-07-02
201
202### Fixed
203- **The Updates page now works in the Android app.** It now shows the newest
204 available version, and the update button downloads and installs it right on
205 your phone (your posts and settings are kept).
206
207## [1.3.1] — 2026-07-02
208
209### Fixed
210- **Music keeps playing in the background on Android.** When a track ended while
211 your phone was locked or the app was in the background, the next track would
212 start and stop again after a second. The player now feeds the whole queue as
213 one continuous stream, so auto-advancing to the next track no longer counts
214 as "new" playback that the browser is allowed to pause.
215
216## [1.3.0] — 2026-07-02
217
218### Added
219- **Choose a light or dark share card.** The auto-generated share image follows your site theme;
220 under Admin → SEO you can now force it light or dark.
221- **A mention is now a notification.** When someone on the fediverse mentions you in a post —
222 even one that isn't a reply to you — it shows up in your fediverse notifications with a link
223 to the original.
224- **Cover art on openly shared audio.** A track shared openly on the fediverse now carries its
225 cover art (or the post cover), so audio players that support artwork show it instead of a blank tile.
226- **Report a post to the fediverse.** From a fediverse post you can now report it to the moderators
227 of its own home server, with an optional reason — and if someone reports your site, the report
228 shows up in your fediverse notifications.
229- **Set a post's language.** Choose the language you wrote a post in — on the fediverse it enables
230 timeline language filtering and the translate button.
231- **Alt text for images.** Give your cover image a description (and inline images keep their own
232 alt text) — it federates to the fediverse and lets screen readers describe the picture.
233- **Mention people in a post.** Typing `@user@server` in a post now links to their profile and
234 notifies them on the fediverse — even if they don't follow you — just like a mention in a reply.
235- **Short videos in the feed autoplay and loop.** An animated cover or a short (≤30s) clip in the
236 News feed now plays automatically and loops muted, like a GIF; longer videos keep their controls.
237- **Vote on fediverse polls.** A poll from an account you follow now shows in the News feed with its
238 options and current results, and you can cast your vote — it federates back like any Mastodon vote.
239- **Create your own polls.** A post can now carry a poll (single or multiple choice, with a set
240 duration). It federates as a real fediverse poll, so your Mastodon followers can vote from their own
241 app; the live results show on the post and the poll closes itself when the time is up.
242
243### Changed
244- **Sharing audio openly is now one-way.** Once a track is shared openly on the fediverse the file
245 has spread, so "closing" it again would be false security — the editor now locks the choice after
246 opening and warns you before you tick it.
247
248### Fixed
249- **Remote videos show a preview frame.** A video in the News feed or a Circle tile (e.g. from
250 Loops or PeerTube) used to appear as a black box until you pressed play; it now shows a real
251 poster frame. (Longer videos keep their player controls by design — only clips under 30 seconds
252 autoplay like a GIF.)
253- **Mentions, hashtags and links inside brackets now work.** A mention like `(@user@server)`, a
254 `(#hashtag)` or a bracketed URL federated as plain text — and the mentioned person was never
255 notified. They now link (and notify) like their unbracketed forms.
256- **Plain web addresses become links on the fediverse.** A bare URL typed in a post or reply now
257 federates as a clickable link instead of plain text.
258
259## [1.2.0] — 2026-07-01
260
261### Added
262- **PeerTube videos in the feed.** A PeerTube link in a post now shows an inline player in the News
263 feed, like YouTube, Spotify and SoundCloud already did.
264- **Light share images.** Sites whose default theme is Light now get a matching light Open Graph card
265 when a page is shared, instead of always a dark one.
266- **Leave your own visits out of the stats.** As the admin you can now exclude your own IP address
267 from your site statistics, for a truer picture of real visitors.
268- **Right-click "Save" is turned off on covers, images and videos** — a light bit of friction so the
269 artwork isn't one click from being saved (it's friction, not protection).
270
271### Fixed
272- **Animated video covers now render correctly everywhere.** In the Circle and the grid they could
273 show up as a broken image or a blank tile; they now display as a proper looping video that fills the
274 square, centred. Right-clicking a cover gives the normal link menu instead of the browser's video controls.
275- **Following someone no longer gets stuck.** A follow whose first delivery fails (the other server
276 briefly unreachable) is now retried automatically with backoff, instead of staying on "pending" forever.
277- **Boosted posts show their real text** in the Circle, instead of a "RE: <link>" prefix.
278- **Hardened fediverse handling** — stricter signature checks on incoming activity, blocks now also
279 cover a boost of a blocked author, and pinned-post syncing no longer races when you save several times quickly.
280
281## [1.1.0] — 2026-06-30
282
283### Added
284- **Animated covers play smoothly everywhere.** Upload an animated WebP as a cover and Klonkt also
285 makes a muted, looping video of it. iOS Safari — where animated WebP is janky — gets the smooth
286 video, every other browser keeps the crisp WebP, and on the fediverse the cover federates as a
287 video that plays in Mastodon and its apps. Shown on the post, the grid, the feed and related posts.
288- **Media library (Admin → Media).** See every uploaded image, where each one is used, copy its URL,
289 and clean up unused files in one click — including the leftover video/poster of an animated cover.
290 Images, Audio and Playlists now share one tab bar.
291- **Share button** at the bottom of every post (native share sheet, or copy link).
292- **Replace a track's audio file** without re-creating the track.
293- **Music on the fediverse (first step).** Audio posts now carry schema.org *MusicRecording* /
294 *MusicAlbum* data, and a per-post toggle can share a hosted track as a real fediverse audio
295 attachment that plays in followers' feeds.
296
297### Changed
298- **Cleaner embeds on Mastodon.** A post with a YouTube/Spotify/SoundCloud link now lets Mastodon
299 show its player card; link-only tracks share their streaming links. The cover still shows in other
300 Klonkt feeds. (On your own site nothing changes — the player and cover render as before.)
301- **Circles stay in sync the fediverse way** — edits and missed posts catch up automatically via
302 standard ActivityPub, so a Circle no longer drifts out of date.
303- **Everything Klonkt federates is now valid AS2 / JSON-LD**, guarded by a test, so stricter servers
304 accept it.
305- The track list is sorted **newest-first**.
306
307### Fixed
308- **Animated WebP covers are no longer frozen to a single frame** (the crop editor and the thumbnailer
309 left them static).
310- **Link-only tracks** (Spotify/YouTube, no uploaded file) can be inserted into a post again.
311- **Link previews** (og:image / Twitter card) now use absolute image URLs, so they show on Signal,
312 WhatsApp and other scrapers.
313- Several **fediverse delivery fixes**: covers/links no longer turn into a black tile on Mastodon,
314 raw audio files don't clutter a post that already has a player, and dead links from a renamed
315 remote post heal themselves.
316- The **mobile feed** loads full-resolution covers; long titles wrap instead of overflowing.
317- **Self-hosting updates** are more reliable: re-running the installer keeps your channel, and the
318 updater no longer restarts or claims an update when you're already up to date.
319
320## [1.0.0] — 2026-06-30
321
322### Added
323- **Klonkt is now on the fediverse (ActivityPub).** Your site is a real fediverse
324 account: people on Mastodon — or another Klonkt — can follow you, and your posts
325 reach their feeds. You can follow accounts and read their posts in a **News** feed,
326 get **notifications**, and **like, boost and reply** to posts. Incoming activity is
327 verified, so fake replies, likes and followers are rejected.
328- **Anyone can reply, like or boost your posts from the fediverse** — visitors interact
329 from their own account (they just enter their server); no account on your site needed.
330- **Circles**: follow other Klonkt sites and show each other's public posts in your
331 Circle — decentralised, with no central platform.
332- **Sensitive (NSFW) posts** with your own content-warning text: blurred with
333 click-to-reveal across the site, and shown as a content warning on the fediverse.
334- **Block** an account or an entire domain you'd rather not hear from.
335- Search now also finds **tracks** (by title, artist and album), playable straight from
336 the results with a link to the post they appear in — and post search matches as you type.
337- **Live theme preview** in Admin → site settings: accent, theme and palette update
338 instantly, before you save.
339- Uploaded images are automatically optimised to **WebP** for faster pages.
340- A roomier **mobile writing experience**: tap to open a distraction-free fullscreen
341 editor, with the formatting toolbar staying in view above the keyboard.
342- **Long posts collapse in the News feed** with a *read more* toggle, so a long post no
343 longer fills the whole screen — tap to expand or collapse it.
344- **See everyone in a Circle**: when a Circle has more than five sites, the member count
345 opens a popup that lists them all, so a big Circle no longer hides its members.
346
347### Changed
348- **Palettes revised to 8**: the neutral **Klonkt** (gold accent) is the new default,
349 plus seven full-colour themes — Forest, Ocean, Teal, Lilac, Sunset, Candy and Amber.
350- **Your profile federates more completely**: the links on your profile, the date you
351 joined and the accounts you follow now travel along to other servers, so your profile
352 looks complete when someone views it from Mastodon or elsewhere.
353- **Cover images and avatars are sharper** — resized on the server instead of being
354 squeezed by the browser.
355
356### Removed
357- **Hub mode** — Klonkt is now **solo or Circles**; you build a collective or label
358 through **Circles** (federated, standalone sites).
359- **Native comments and Google login** — replies, likes and boosts now run entirely
360 through the fediverse.
361- **Local favourites (♥)** — replaced by the ⭐ fediverse like.
362
363### Fixed
364- **Hashtags and mentions now work in every language and script** (e.g. Japanese, Cyrillic,
365 Arabic), both on your site and when federating — not just the Latin alphabet.
366- **Switching a site to solo (federation off) works again.** Turning the fediverse off could
367 make the whole site return “page not found” instead of just disabling federation; it now
368 cleanly switches federation off while the rest of the site keeps working. (Self-hosters:
369 update to pick up the fix.)
370- The Fediverse and Notifications items now disappear from the menu when federation is off,
371 instead of lingering.
372- The mini-player jumps and scrolls to the track that's playing — also from an album or
373 playlist — and keeps it highlighted.
374- Empty album/playlist covers now fall back to the first track's cover.
375- A profile photo that broke in the header after the WebP switch now repairs itself.
376- Many **mobile post-editor** fixes: reliable scrolling, a formatting toolbar that stays
377 put, no page jumps when you tap a button, and a Save bar that sits just above the keyboard.
378- **Boosts now reach the original poster** — their server registers the boost and notifies
379 them, just like a boost from Mastodon — and a boost is retried if a server is briefly
380 unreachable instead of being sent once and forgotten.
381- **Unfollowing an account now takes effect on the other server** (it could previously fail
382 to register, leaving you still following on their side).
383
384## [1.0.0-beta.2] — 2026-06-19
385
386First release where we actively track the version (shown in the footer — click it for
387this page).
388
389### Added
390- Release tracking: the version number in the footer links to this changelog page.
391- Eight premium features (Patreon-gated): newsletter/mailing list, download-for-email,
392 release scheduling + fan-only previews, EPK/press kit, pro statistics, link-in-bio +
393 click stats, embeddable player, and show agenda + notify-me.
394- Newsletter signup field in the footer (on/off in Admin → Settings).
395- SMTP settings configurable in Admin → Settings (no more config-file edit needed), with
396 a test-mail button.
397
398### Changed
399- Tidier settings forms (stacked labels, full-width inputs).
400- EPK/press kit shows the top 10 most-listened tracks.
401- Nicer 404 page (mobile-friendly) and clearer login error messages.
402
403### Fixed
404- The site-wide audio player wasn't loading any tracks.
405- Button text became unreadable on hover.
406- Date pickers now follow the theme.
407- Back/forward navigation no longer shows a doubled header.
Note: See TracBrowser for help on using the repository browser.