-
v1.7.1
Stablereleased this
2026-09-29 17:16:10 +02:00 | 271 commits to main since this releaseAdded
- Added PDF attachment support to the composer for vutuv accounts, since vutuv started accepting PDFs on posts on 2026-09-28. Every other platform still only accepts images/videos as before.
- Expanded development-branch CI with database and image smoke checks, dependency and shell audits, coverage reporting, and a report-only code quality review that can become strict after refactoring.
- Added ESLint, Prettier and a TypeScript type-check for the server's JavaScript code as an enforced quality gate, now run automatically on every push and pull request so problems are caught before they reach
main.
Changed
- Split the 816-line file of shared type definitions into small files per area (plugins, posts, accounts, analytics and others); the types are imported exactly as before.
- Split the 641-line account response parsers into small files per report (accounts, performance, audience, hashtags, notifications); the checks are unchanged.
- Split the 846-line file of platform helpers (names, badges, supported features, composer profiles) into small files, described the composer profiles of all platforms in one table, and recorded the full output of the helpers in a test so nothing changed.
- Split the 643-line admin routes into files for users, plugins, plugin settings and system information, and added tests for the plugin settings, the admin plugin routes and the exact changes made to users.
- Split the 675-line post editing route into small services (lookup, form, attachments, saving, edit source), which also fixes uploaded files staying behind when the post id in the request is invalid, and added tests for the edit source, rejected edits and published edits.
- Split the 839-line platform request file into token errors, login state, refresh guard, OAuth tokens and request executors, removed an HTTP/2 retry branch that could never run, and added tests for the token exchange, the refresh and the PeerTube, Misskey and Pixelfed request paths.
- Split the 890-line plugin loader into the plugin context, boot, record, translation and state files, removed a restart flag that was always false, and added tests for the context handed to plugins, scanning the plugin directory, translations and switching plugins at runtime.
- Split the 879-line plugin scaffold into files for the presets, the manifest, the translations in five languages, the server code, the web files and the readme, and recorded everything it writes in a test so the generated plugins stay the same.
- Split the 910-line historical import into a paging loop with one small description per platform, the follow events, the follower history, the finish and the failure handling, and added 54 tests that cover every platform, the mail, the audit log and the retry rules.
- Split the 957-line database initialization into the base schema and eight files of migration steps in the same order, and recorded every statement it sends in a test so the schema stays exactly the same.
- Split the 986-line app root into hooks (session, plugin pages, data, settings, shared selection, update notice) and small components (verification screen, notices, footer, pages), added 92 tests for it, and fixed that a plugin page named in the address fell back to the dashboard before the plugin list had loaded.
- Split the 625-line user administration page into a list hook, an edit hook and small components (toolbar, table, row, accounts, edit dialog) and added 20 tests for it.
- Split the 787-line postings page into hooks and small components (tabs, toolbar, list, row, edit dialog) and added 42 tests for it.
- Split the 800-line accounts page into hooks and small components (cards, connect panel, import and login-error badges) and added 47 tests for it.
- Split the 769-line settings page into one small component per card (e-mail, password, time zone, colour scheme, language, plugins, account deletion) and added 53 tests for it.
- Split the 811-line dashboard into tab, chart-data and hero-number modules plus one small renderer per widget, and added 57 tests for it; the post-count helper for accounts is now shared between the dashboard and the accounts page.
- Split the 713-line dashboard start page into a report loader, number cards, best posts, charts and tips, reusing the formats and growth figures of the dashboard, and added 57 tests for it.
- The interface tests now wait up to five seconds for the page to change and may run up to twenty seconds, so a busy CI runner no longer makes them fail by chance.
- Shortened the longest functions in the newly split pages (accounts, postings, settings, dashboard, user administration) so they stay within the hard limits of the coding standards.
- Shortened or simplified more functions in the split server code (thread splitting, focal points, plugin helpers, scaffold texts, token exchange, post editing, import) and added 54 tests for the composer payload helpers.
- Split the repost route into a lookup, an attachment copier and a publisher, and added 5 tests for it.
- Simplified the conversion of notifications from Mastodon, Misskey and Vernissage, documented it, and added 92 tests for it.
- The Docker image and the CI now run on Node.js 26 instead of Node.js 20, and the Node type definitions were updated to match.
- Split the 1,268-line API client into a shared request core and small files per area (sign-in, accounts, posts, user, administration), removing about 85 copies of the same request code, and added a contract test for every call. Refreshing the account counts now reports a failure instead of hiding it.
- Split the 2,378-line post composer into small, documented parts (pure functions for the rules and the sending, hooks for the state, small components for the view) and added about 340 tests for them; how the composer looks and behaves is unchanged. The account choice also no longer updates endlessly when the list of accounts is rebuilt on every render.
- Added automated tests for every route group (authentication, users, admin, posts, ownership) and for the scheduler, and split the scheduler into small functions so a pass can be run and tested directly.
- Database tests can no longer be skipped silently in CI, the test database is migrated once per test run, and the HTTP application is built in
server/create-app.jsso tests can exercise all routes without starting the server. - Added frontend tests that render the sign-in screen (login, second factor, registration, password reset link) and the application shell in a simulated browser and check what the user sees, what is stored in the browser and what is sent to the server. Tests that need browser storage now behave the same on Node 20 and on newer Node versions with their own
localStorage. The test tools@testing-library/react,@testing-library/domand@testing-library/user-eventwere added as development dependencies. - Extended the type check to the newly written server tests and helper scripts, and documented the extra tools the tests need (
git,curl,jq). - Releases are now protected by a gate: a tag only builds, publishes and deploys if it is a plain
vX.Y.Zversion, matches the version file, lies onmainand the same files passed CI. Container images and the release action are pinned by digest, and the release notes no longer mix up versions such as 1.7.1 and 1.7.10. - Added hand-written runtime validation (no schema library dependency) for the 17 most complex API responses the frontend receives (plugin discovery and settings, reach summary/posts, notifications, post analysis, paginated posts/archive search, post edit source/status, user profile/sessions, public config, and the admin version/plugins/users endpoints), replacing unchecked
anycasts with parsers that throw a clear error on a malformed response instead of passing bad data silently into the UI. Centralizes the previously five-times-duplicatedisRecord()type-guard pattern into one shared validation module with its own unit tests, plus dedicated tests for every new response parser. - Extended that same runtime validation to every remaining
api.tsmethod (auth/registration/login/2FA, per-account analytics and hashtag breakdowns, account insights, notification actions, post create/publish/edit/update/repost, plugin settings, the global notice banner, and the admin plugin-toggle/instance-registry endpoints), including correctly handling several analytics fields PostgreSQL can return as numeric strings instead of numbers. The only method left deliberately untyped isproviders.connect, since each plugin provider defines its own response shape. The new parsers' own tests caught two pre-existing bugs before release: a notification's actor and a plugin's web manifest were both validated as required when the API can omit them entirely. - Split the dashboard's ~1,750-line widget-rendering switch into 22 documented, independently typed widget components grouped by tab, moved its ~19 near-identical data-fetching effects into a single
useDashboardDatahook, and added the project's first component-level tests (45 render smoke tests covering every widget's loading/empty/populated states) alongside a locale-aware formatting module with its own unit tests. - Replaced positional post-list and composer API arguments with documented request objects, centralized multipart post-body construction, and removed unsafe non-null assumptions from cross-post failure summaries. Publish-status polling now receives one named options object, and stored publish errors are narrowed from
unknownbefore use. - Consolidated repeated insight evidence construction, plugin-handler cleanup branches, and post-edit JSON-array parsing into documented shared helpers. Plugin boot and validation errors now live in separate class modules, and migration SQL is wrapped without changing its statements.
- Split the 1,700-line dashboard tip formatter into documented, tip-specific renderer modules, replaced its eight positional dependencies with a named options contract, and gave built-in insight evidence an explicit TypeScript transport type. Embedded example posts are now validated before the UI renders them; contract and extraction-equivalence tests protect all 57 built-in tip variants.
- The tenth server refactoring pass extracted plugin-provider routes, the mobile dashboard query bundle, and all platform-specific post-refresh workflows into documented route, service, and worker modules, leaving
server/index.jsas a small composition root. PostgreSQL-backed contracts now cover successful refreshes across Mastodon, Misskey, PeerTube, WordPress and Vernissage as well as the existing Loops failure path, protecting provider behaviour during the structural split. - The ninth server refactoring pass extracted the 2,580-line insights engine from
server/index.jsinto documented metric loaders, small topic evaluators, plugin and persistence adapters, a dedicated route, and a periodic worker. PostgreSQL-backed contract tests now cover insufficient samples, representative generated and persisted tips, the mobile dashboard integration, the current manual refresh contract, and account-refresh timeout behavior; generated tip sets are also replaced atomically so a failed insert cannot leave a partial result behind. - Continued splitting the monolithic
server/index.jsinto focused modules (config.js,db.js,app.js,lib/,services/,middleware/,providers/). - Audited all eight refactoring passes for missing documentation and leftover duplication. Added a
@fileheader to every module that was missing one (72 files acrosslib/,services/,routes/,workers/,middleware/,providers/andserver/index.jsitself), explicitly documenting side effects and disambiguating similarly-named modules. No behavior change. Confirmed no dead code was left behind by the refactoring; the remaining duplication found (mainly a repeated account-ownership check across many routes, and a few smaller copy-pasted helpers) is tracked for a future cleanup pass rather than fixed here.
Fixed
- Workers now wait until the application has finished database initialization and responds as healthy before starting; a failed migration stops startup instead of exposing a partially migrated schema.
- The best posts on the dashboard start page now show readable text, with characters such as
&decoded and script text left out, and late answers for an account that is no longer selected are ignored. - A success message under a settings form no longer makes a newer error message disappear early, and the fallback texts of the settings forms are now translated.
- A finished import that loaded no posts no longer shows a stray "0" on the account card.
- Error logs no longer contain access tokens, client secrets, authorization codes, passwords or database row values. Failed requests to other servers are logged with their status, address and a shortened answer, without headers and request bodies.
- A repost is no longer published twice when the scheduler runs while it is still being published, and a restarted server process no longer takes back posts and import jobs that another process is still working on: only work that has not changed for 30 minutes counts as abandoned now.
- The server no longer connects to private network addresses when an instance is connected or when the attachments of a remote post are copied for a repost or an edit, and it no longer sends the account token to other hosts than the account's instance. Operators with an instance in their own network set
ALLOW_PRIVATE_INSTANCE_URLS=true; copied attachments are limited to 50 MB. - The post list no longer turns a server error (for example HTTP 500 or 503) into an unreadable validation message. The signed-in area now shows the message of the server, as it already did for the account list.
- Fixed the one-minute limit for requesting a new e-mail login code not applying when the server and the database run in different time zones.
- Fixed scheduled posts being set one hour off when the chosen time lies around a daylight saving switch, and made the scheduler's time zone conversion independent of the browser's date formatting.
- Fixed the notification list of an account failing to load completely when a single notification came without a date, which some platforms send. Such notifications are now shown without a time.
- Fixed uploaded files being able to run as a web page in the app's own origin (for example HTML or SVG disguised as an image). Uploads are now checked by their actual content and stored with the matching extension,
/uploadsserves only known image and video types inline, and all responses forbid content sniffing. - Fixed the single-sign-on login redirect being able to send the fresh session token to another website through a crafted
redirect_url. The redirect now stays inside the app, and the token travels in the URL fragment so it no longer appears in server or proxy logs. - Fixed API authentication accepting any correctly signed token, including the short-lived two-factor login challenge token, without a session check. Only tokens of an active session are accepted now, so tokens from before session management existed require one new login.
- Fixed a cross-site scripting hole in the plain-text post previews of the archive and dashboard, where markup from a remote instance could run script in the app; previews are now built from an inert document.
- Fixed the Fediverse OAuth callback trusting a forged
stateparameter, which allowed attaching an account to another user; states must now be issued by the server, expire after 15 minutes and work only once, and Loops no longer places its client secret in the authorize URL. - Restored connected accounts, account selection, follower figures, and notifications after API validation rejected nullable account and post fields. Account loading now survives an independent post-summary failure and reports loading errors visibly.
- Fixed two-factor login silently never applying its intended clock-drift tolerance, caused by an outdated option name for the underlying TOTP library; logins could fail for users whose device clock had drifted even slightly.
- Fixed a file upload weakness where a crafted filename from the client could influence where the uploaded file was written on disk.
- Fixed a third-party OAuth error being logged together with the account's client secret in plain text.
- Fixed an admin-permission check that silently treated a failed database lookup as "not an admin", without any record of the failure.
- Fixed a startup issue where a failed database migration was only logged, letting the server start anyway against an inconsistent database.
- Fixed several places where background/background-like tasks (imports, notifications, connecting or managing accounts) could fail silently without any visible error.
- Fixed two slightly-off Viridis colormap constants in the dashboard charts that could never be represented exactly as floating-point numbers.
- Updated
nodemailerto resolve several known security advisories (arbitrary file access, domain-validation bypass, a denial-of-service vector). - Fixed a 2FA login challenge that could be reported as already expired minutes after being created whenever the server process ran in a non-UTC timezone, caused by comparing a database timestamp using the wrong timezone assumption instead of letting the database itself decide.
This release publishes the FediSuite server Docker images (app and background worker) used by the self-hosting Docker Compose stack.
Docker images on Docker Hub: https://hub.docker.com/r/christinloehner/fedisuite
docker pull christinloehner/fedisuite:1.7.1 # linux/amd64 docker pull christinloehner/fedisuite:arm64-1.7.1 # linux/arm64Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
3 downloads