Repository navigation
NoPostNow 0.2.2
A maintenance release from a full audit of the code: security and reliability fixes, and a good deal of leftover code removed. No data migration is needed.
Security
- Writes can no longer slip past the access rules. A request using a
__proto__field name could pass the checks while saving a document without the checked fields. Such names are now refused. - Blocks are enforced by the server. Blocked members can no longer message or notify each other by calling the API directly; previously blocks were only hidden in the app.
- Two-factor attempt limit. Wrong authenticator codes when turning 2FA off now count against the limit, and entering the correct password no longer resets it.
- Shared devices. Signing out now stops that device receiving the previous member's notifications, and the next member to sign in on it can turn notifications on.
- Push notification text for a new post is read from the post itself rather than from the request.
Fixed
- Windows launcher: an installed or already-downloaded Node.js was never recognised under Windows PowerShell 5.1, so every start downloaded it again.
- Updating: the site now rebuilds whenever the code has changed, not only when the version number does, and the launcher reinstalls dependencies when they change.
- Moving to a new machine: pointing setup at a copied data folder keeps its push keys instead of replacing them, which silently broke everyone's notifications.
- Control panel: switching to a new, empty data folder now asks for its admin account instead of dead-ending.
- Feed:
- A failed page load no longer freezes scrolling.
- Deleting a post no longer cuts the feed short.
- Likes and caption edits no longer revert when you leave and come back.
- Offline cache: the app no longer keeps error pages or private photos in its offline cache.
- Live updates reconnect after a restart or proxy hiccup instead of dropping to once-a-minute polling.
- Daily reminder still goes out if the server was busy or asleep during the exact minute.
- Sessions stay signed in while you keep using the site, rather than ending 90 days after sign-in regardless.
- The OPEN button on the install page went to a page that does not exist.
- A malformed notification address could crash the admin console's System tab.
- Windows auto-start instructions now start the site rather than the control panel.
Removed
- The "claim a post" button and the admin Approvals tab. They were for posts without an owner, which this version cannot create.
- Recovery tools in the admin console for account data that can no longer go missing.
- An unused component, an unreferenced image, and other dead code.
Updating
Get the new code (git pull, or download and replace the files, keeping your data folder) and start it again. The launcher installs anything new and the site rebuilds itself on first start.
- Linux / macOS:
sh nopostnow.sh - Windows: double-click
nopostnow.cmd
Members' installed apps pick up the new offline cache on their next visit.