Commit Graph
14 Commits
Author SHA1 Message Date

2026-08-11

lezi-fun 7cdb7c1ac2 security: sync upstream XSS fix + moderation history (reports SET NULL)
- renderMarkdown: sanitize marked output with sanitize-html (allowed
  tags/attrs whitelist, http/https schemes only, strip on* attrs) —
  prevents stored XSS in posts/replies/signatures
- schema: reports.post_id ON DELETE CASCADE → SET NULL (keep moderation
  history when a reported post is deleted); migration applied to prod DB
2026-08-11 17:06:56 +08:00

2026-08-10

lezi-fun c171efc1ec fix: dropdown menu not opening on avatar click
React synthetic event stopPropagation doesn't stop native document
listeners (React 17+ attaches to root, document listener is separate).
The document click handler was closing the menu right after avatar
opened it. Now it checks if the click target is inside the dropdown
or on the avatar and skips closing.
2026-08-10 14:38:30 +08:00
lezi-fun 4ee38f6486 feat: align with upstream — pin posts, edit marker, custom CSS, UX fixes
- Pin/unpin posts (PUT /api/posts/:id/pin, admin) with notification to author
- is_pinned/pinned_at in schema; 📌 badge on feed + detail; admin pin button
- Edited marker (已编辑) on feed + detail; edit button + modal for authors
- Custom CSS: upload/delete API + admin tab + global loader (style.css override)
- Fix: duplicate post title on detail page (remove card title, keep header)
- Fix: forum name flicker on load (localStorage cache before fetch)
- Fix: dropdown menu closes on outside click (document listener)
- Fix: document.title + <title> sync on forum rename
2026-08-10 12:32:06 +08:00
lezi-fun 95b0d63223 Merge remote-tracking branch 'origin/main' into nextjs-migration 2026-08-10 09:08:30 +08:00
lezi-fun 4732e7d61d feat: port upstream custom pages, notifications, recovery codes, account security
- schema: custom_pages, notifications, recovery_codes tables + UNIQUE(conversations) + posts.edited_at
- API: custom-pages CRUD (public + admin), notifications (list/read/read-all), recovery-codes (generate/count/reset-password), user avatar/password/email, post edit
- UI: custom page nav links + iframe rendering, admin custom pages tab with editor modal, messages page shows notifications, settings page gains avatar upload, password/email change, recovery codes manager
- Sync globals.css with upstream rewrite
2026-08-10 09:07:06 +08:00

2026-08-09

Furrium Network c674847586 Update schema.sql 2026-08-09 23:40:43 +08:00
Furrium Network 7a451f2013 Update schema.sql 2026-08-09 23:18:09 +08:00
Furrium Network 4ac816df19 Update schema.sql 2026-08-09 22:58:31 +08:00
Furrium Network 0142bc5c2a Update schema.sql 2026-08-09 22:22:05 +08:00
Furrium Network 4ca6b42ee4 添加自定义页面表 2026-08-09 22:09:46 +08:00
lezi-fun 300ad5959c feat: port private messaging (私信) from upstream
- Add conversations/messages tables to schema.sql (upstream missed them)
- API: GET/POST /api/conversations, GET/POST /api/conversations/[id]/messages, PUT /api/messages/[id]/read
- Chat UI: conversation list modal, chat window with 3s polling, unread badge
- Navbar message entry opens DM list; user profile has 发私信 button
- Access control: only conversation participants (403 otherwise)
2026-08-09 21:01:55 +08:00
Furrium Network fd7d0c95b8 添加私信 2026-08-09 18:59:54 +08:00
Furrium Network 6deb72beda Update schema.sql 2026-08-09 12:41:00 +08:00
Furrium Network 89e37cd48d 我怎么忘了放这个 2026-08-09 12:17:52 +08:00