Skip to content

Added Gallery Uploads, Server Tests and User Input Checks - #2675

Merged
tja9674 merged 4 commits into
mainfrom
dev
Nov 2, 2026
Merged

tja9674 merged 4 commits into
mainfrom
dev

Conversation

@tja9674

@tja9674 tja9674 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

tarroyo0907 and others added 3 commits November 2, 2026 12:26
…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>
Add word filter, input validation, thumbnail fix, double-save fix,
@railway-app
railway-app Bot temporarily deployed to LFG / production November 2, 2026 17:34 Inactive
@tja9674
tja9674 merged commit 549ca0d into main Nov 2, 2026
4 checks passed

This branch was successfully deployed

1 active and 1 inactive deployments
Testing — 40a013ec Deployed Nov 2, 2026 by tja9674 via test-server #714
LFG / production — 40a013ec Deployed Nov 2, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants