Skip to content

fix(links): prevent spam link submissions and handle React keys corre…#17

Open
Strategosky wants to merge 1 commit into
myselfshravan:mainfrom
Strategosky:fix/remove-spam-links
Open

fix(links): prevent spam link submissions and handle React keys corre…#17
Strategosky wants to merge 1 commit into
myselfshravan:mainfrom
Strategosky:fix/remove-spam-links

Conversation

@Strategosky

Copy link
Copy Markdown

This PR removes spam/test submissions and implements safeguards to prevent them in the future. It also fixes a React list key warning.

Key Changes:

  1. Database Cleanup
  • Removed existing spam documents (with titles "q" and "Test") from the live Firestore collection.
  1. Spam Submission Prevention
  • Added form validation to block new link contributions containing lazy/spam titles like "q" or "test" (case-insensitive).
  1. Display-time Filter
  • Added a frontend filter to ensure any records matching these spam titles are hidden from the UI.
  1. React List Key Fix
  • Mapped the unique Firestore document id into the data array, resolving React console warnings caused by item.id being undefined.

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.

1 participant