Hi friends!
Someone wrote to us about a follow request. They'd sent it from littleFedi to their BookWyrm account, switched over to BookWyrm and approved it. Back in littleFedi, it still said requested.
We reproduced the problem with a slash in the key ID. BookWyrm includes one before #main-key in its signing key ID, and littleFedi was carrying it over when looking up the account. Nothing more than just one extra character, but enough to keep a perfectly good reply from getting through. That's fixed in today's build.
There are a few things in this release you'll meet just by reading your timeline. Open a thread and littleFedi keeps your place while the rest of the replies load. Read a notification in an app and the badge catches up in the browser too. If you like keeping your hands on the keyboard, turn on shortcuts in Settings > Appearance and press j or k to move between posts. And if your Home timeline has already moved on, you can still go back through a list and read older posts that are on your server.
If you've just set up littleFedi and your Home timeline is still empty, try Explore instances. You can read another server's public timeline without following anyone. We built this with another project in mind. I'll tell you more when I can.
You can now verify a website link on your littleFedi profile. Add the site to your profile, then link back from the site with rel="me". littleFedi checks the link when you save your profile and again each day. You'll see verified links on profiles from other servers too.
If you publish a blog with littleFedi, you can now add a legal notice (an Impressum) and a privacy policy to its footer from Settings > Blog. If you already have those pages, link to them. You can also write either page in Markdown right there and let littleFedi publish it with the blog.
There's some work behind the scenes as well. Hashtag pages and search are faster on large databases. When pruning old remote posts, littleFedi now leaves the ones you've bookmarked, favourited or boosted alone. On OpenBSD, builds with SQLite and local media can use unveil(2) and pledge(2). You can turn that on when you're ready.
This build also fixes several security issues. littleFedi is stricter about which servers can speak for remote accounts or mark objects as deleted, and about what the media proxy sends back to browsers. We also put a limit on the work it can do to verify Linked Data Signatures. In the API, remote bios are now sanitised, scheduled posts require the right permissions, and apps stop receiving push notifications after logout. Follow imports now respect blocks and the approval settings of locked accounts.
Thanks to everyone who took the time to report these issues.
The full changelog below covers everything (well, not exactly everything) since 26.11.16. First, a small change for those of us who like to put upgrades in scripts.
Where the binaries live now
Say you have a script that installs this build and checks its checksum. You run it today, then again in a month when setting up another machine. You want the same binary both times, even if I've put another release online in between.
Use binaries-26.12.01/ for both the binary and SHA256SUMS. The guides, configuration examples and service files are there too. If you just want the latest binary build, binaries/ takes you there. A source-only release leaves that link pointing to the previous binary release.
The source tarball and its checksum are still directly under /downloads/. Both latest and latest.tar.gz point to the most recent source archive.
Before upgrading
Stop littleFedi and back up the database, configuration and media. Save any encryption keys kept in the service environment. Replace the binary with the build for your system and backend, then start it with your existing configuration.
Database migrations run on the first start. Some build indexes, so give that startup a bit more time on a large database or an SD card. Once it's up, check the logs and /readyz. If you need to go back, restore the pre-upgrade backup before starting the old binary. Upgrade and rollback notes
Thanks to everyone who's been running littleFedi and telling us when something doesn't work. And thanks to Stephen for the Catch-up fix!
Changelog
- Fixed follow requests to BookWyrm staying pending after approval.
- On OpenBSD, littleFedi creates the blog output directory before enabling the sandbox.
- Public binary downloads and their checksums are now available in versioned directories. The
binaries/link still points to the latest release. - Absolute timestamps now use a 24-hour clock in your local time zone.
- The web interface keeps your place in a thread while more replies load.
- Push notifications for your own polls now arrive even if you only allow push notifications from accounts you follow.
- Deleted posts now disappear right away from open timelines, inboxes and notification lists, including direct messages you remove with Delete for me or that no longer include you after an edit. The notification badge and list follow changes made in other tabs and apps, such as reading, dismissing or clearing notifications. Screen readers announce new notifications when the list refreshes.
- Instances that use the PostgreSQL streaming backend resync their caches and live connections after the listener reconnects.
- Turn on Collapse media descriptions in Settings > Appearance to keep them closed by default. Use Show description on any attachment that has one. The setting is off by default and is saved in this browser.
- Language filters now let direct messages and posts that mention you through, even when their language is missing or outside your selection. This also applies to push notifications. For other posts, use Show posts with no language information to include posts without a declared language in a language allowlist.
- Verified website links now appear on profiles from other servers too. littleFedi checks that the website links back to the profile with
rel="me", and the API reports the date inverified_at. Links are checked in the background when profile fields change and during daily maintenance. Migration 014 stores the remote profile URL. - From Settings > Blog, authors can add a legal notice and privacy policy to their blog footer. Each can link to an external URL or a page written in Markdown. Migration 013 adds the new settings.
- Lists now show older posts from members that are still stored on your server, even after they drop out of Home. Click Load older posts or scroll down to keep reading. The list tells you when you've reached the end.
- You now get a notification when a poll you created or voted in ends, including polls from other servers. Email and push follow your notification settings.
- The composer shows "Sending..." as soon as you press Post and keeps it visible while attachments are prepared and uploaded. Repeated clicks are ignored while the request is in progress.
- The expanded composer on timelines gives you more room to write.
- Turn on keyboard shortcuts in Settings > Appearance. Press
cto compose,/to search,jorkto move between posts, and Enter to open the focused post. Press?for the list. The setting is off by default and is saved in this browser. No database migration is needed for this feature. - SQLite can read
/dev/urandomto seed its random number generator when the OpenBSD sandbox is enabled. - Long alt text wraps in the composer. You can make the field taller when adding or editing an attachment, even with JavaScript disabled.
- Explore instances lets signed-in users browse another server's public local timeline without storing its posts. Pick a suggested server or enter a domain. Both forms work without JavaScript. An empty Home timeline points to Explore, which is on by default in single-user mode. Set
enabled = falseunder[explore]to turn it off. - The DM tab now selects Direct by default. The composer explains who receives direct messages and that server administrators may be able to read them.
- Use Delete for me to remove a received direct message from your inbox, even if you've blocked the sender. Other participants can still read it. Apps can do the same with
DELETE /api/v1/statuses/{id}/for_me. - Hashtag autocomplete in the composer keeps the capital letters you type. For example, selecting a suggestion after typing
#OpenSinserts#OpenSource. - The admin instance list now picks up remote server upgrades when a profile from that server is refreshed. littleFedi checks NodeInfo at most once every 24 hours per server and keeps the last known version if the check fails.
- Fixed a cache bug that could stop you from unpinning or deleting a post after pinning it to your profile.
- Relays such as FediBuzz can now deliver public posts as soon as they accept the subscription. Sending local posts still requires a follow-back.
admin relay listshows receiving and sending separately. - HTTP signatures from relays such as Intahnet now work with RSA public keys in PKCS#1 format.
- Admin → Queue can retry all retained failed jobs in one go. Each job starts with a fresh set of attempts.
- OpenBSD amd64 and arm64 builds with SQLite and local media can opt in to
unveil(2)andpledge(2). The sandbox limits the files the daemon can access and prevents it from launching other programs. It is off by default. Setsandbox = trueand a privatetmp_dirunder[openbsd]as shown in the OpenBSD guide. backup restorenow handles SQLitefile:URLs, including paths with percent-encoded spaces.- Search is much faster on big databases. Searching posts read every status in the database, over a minute on a large SQLite instance. Now local posts are all searched, remote ones only from the last two days, and the web interface has a "Search older posts" link that goes further back one step at a time. The API only searches the recent window. Account search reads the name indexes instead of the whole accounts table (from 15 seconds to a fraction of a second on the same database).
- Fixed "Mark as read" in Catch-up failing on PostgreSQL because of an ambiguous column reference. Patch contributed by Stephen.
- Remote status pruning no longer deletes posts that a local account has bookmarked, favourited or boosted. Until now, pruning a remote post also removed those bookmarks, favourites and boosts, so they disappeared from bookmark and favourite lists and from profiles after
prune_remote_statuses_after_days. Posts already pruned can't be recovered. - Remote status pruning picks its batches much faster on instances that know many remote accounts. On SQLite the query now follows the
created_atindex instead of searching each remote account separately. No migration needed. - Each remote pruning batch now continues from where the previous one stopped, instead of reading again all the old posts that are kept.
- Hashtag pages no longer time out when scrolling. With a
max_idcursor the query on SQLite went through every post older than the cursor, which could take over a minute on a large database and ended in an error. Now it starts from the posts with that tag. - Index on
favourites.uri. Remote undos of a like were scanning the whole favourites table. cache_max_agenow applies to cached avatars, headers, emoji and link preview images too (checked in the daily cache walk). Before, only post attachments expired.- If the daily cache walk stops at
max_delete_per_runwhile the cache is still overcache_max_size_mb, it runs again on the next housekeeping pass instead of the next day. - Indexes on the url columns of media attachments, link previews and custom emoji. Each cache eviction was scanning those tables, over a second per file on a big database.
- Expired data cleanup no longer runs in a single transaction, which kept the write lock for a few seconds every hour and made inbox and web requests wait. Index on
emoji_reactions.emoji_id. /resolveonly fetches remote accounts for signed-in users. Visitors are sent to the account's own server, and links to this instance are looked up locally instead of fetched over HTTP.- Shutdown no longer hangs for 30 seconds when a client holds an SSE stream open, for example another server following the public stream. Open streams are now closed before the HTTP server stops.
- The navigation and floating Post buttons now open and focus the composer, including when it is hidden or using the visual editor. This works across themes, on desktop and mobile, and when arriving from another page. Floating compose controls now appear after scrolling in desktop browsers too. Without JavaScript they stay hidden, and the regular posting form remains available.
- Hashtags, mentions and other internal links now open in the same tab. Mentioned profiles open inside littleFedi when signed in; ordinary external links still open in a new tab.
- The media proxy and remote media cache now return only the parsed media type, preventing invalid headers from being interpreted as HTML. Cached files get their extension from the media type, with
.binas the fallback. - An actor document is only trusted when it comes from the host of its own
id. Before, a server could answer with theidof an account on another server and replace its key and inbox here. When the hosts differ (for example after a redirect), theidis now fetched directly. - A Tombstone returned by a remote fetch is only stored when its
idis on the same host that answered. A server could mark any address as deleted, including local ones, fortombstone_retention_days. - Linked Data Signatures are only checked on documents with at most 16 blank nodes and no named blank nodes (
_:x). Canonicalization grows factorially with groups of similar blank nodes, and a forwarded activity of about a kilobyte could keep a CPU core busy for seconds, or minutes with a slightly bigger one. Normal forwarded deletes and edits stay well under the limit. - Apps stop receiving push notifications when they log out and their access token is revoked.
- The API now sanitizes the bio of remote accounts. It was sent to apps as received from the remote server, while the web interface already cleaned it.
- Scheduled posts now need the
read:statusesorwrite:statusesscope, as on Mastodon. An app token with onlyread:accountscould list them. - Follows imported from an old account or from an account archive now wait for approval when the local account is locked, like the CSV import already did. Before, they were accepted right away.
- A panic in a background job (for example while decoding a broken image) now fails that job instead of stopping the whole server.
- The same two imports now skip accounts blocked in either direction, as the CSV import does. Before, importing a list could follow someone who had blocked you.
- Profiles now have eight fields by default. Set
max_profile_fieldsunder[instance]to change the limit. Field values support Markdown. - A website can show a verified mark on a local profile when it links back with
rel="me". The API also reports the verification date. Links are checked when you save your profile and again daily. A link added later can earn the mark, and removing it clears the mark on the next check. Temporary errors keep the previous result.