Repository navigation
Add word filter, input validation, thumbnail fix, double-save fix, - #2674
Merged
Merged
Conversation
…lti-image upload
Blocked words filter
- English word list (LDNOOBW, CC-BY-4.0, credited in shared/blocked-words.NOTICE.md)
plus a team-editable custom list, in shared/
- Shared matcher (shared/blocked-words.ts): whole-word matching that also catches
look-alike characters, split-up letters, stretched letters and plurals
- Server rejects blocked text on project, profile, job, link, image and video
endpoints (noBlockedWords middleware); non-text values are rejected too so
Prisma's {set} syntax can't hide a blocked word
- Project and profile editors check the same list and show the message before saving
Input validation (security)
- validateBody middleware: allowlists fields and value types on the routes that
pass the request body straight to Prisma (member update, member request update,
profile and project social link updates). Closes a hole where a project owner
could write to a member's user record through nested Prisma updates, and where
links could be moved onto other users or projects
Project thumbnails
- Editor now uses the new image's own local id for the thumbnail (and the first
remaining image after a delete), so the id swap on save actually matches and the
thumbnail gets set
- Server rejects a thumbnail image that belongs to another project
Profile editor saving
- Ignore extra Save presses while a save is running and show the spinner
- saveChanges takes the queued changes and empties the queue before sending, so
overlapping saves no longer add every gallery item more than once
- Tests for the data manager
Gallery uploads
- "Upload multiple images (no cropping)" button under the image grid in the project
Media tab and profile Gallery tab
- Gallery tab keeps a live list of new images so several adds in a row all show
Tests
- Server: blocked words matcher and middleware, validateBody, thumbnail ownership
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Blocked words filter
Input validation (security)
Project thumbnails
Profile editor saving
Gallery uploads
Server Tests