mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Harden and polish the feedback endpoint
- Honeypot field ("website", hidden via CSS + tabIndex -1): any
non-empty value silently short-circuits to a fake success response
without logging or filing anything, at near-zero cost to real users.
- Tag created GitHub issues with the feedback category (bug/idea/
other) alongside the existing "feedback" label, for easier triage -
GitHub auto-creates labels that don't exist yet.
- Rotate feedback.log once it crosses 5MB (move to feedback.log.1) so
a busy instance doesn't grow the file unbounded.
- Push the nudge bubble's cooldown out from the moment someone
actually submits feedback, so it doesn't ask again shortly after
they just did.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5b5f4caf79
commit
7776a71e84
3 files changed
+67
-3
No files matched your search
@@ -3457,6 +3457,15 @@
|
||||
max-width: 90vw;
|
||||
}
|
||||
|
||||
.ts-feedback-honeypot {
|
||||
position: absolute;
|
||||
left: -5000px;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ts-update-toast {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
|
||||
Reference in new issue
Block a user