Open emshyu opened 1 week ago
Notes: /Users/andrewcheng/Documents/17313/NodeBB/public/src/modules/flags.js
JS function createFlag sends a POST request to the /flags endpoint to create a new flag with the provided type, id, and reason. If the request is successful, it hides the flag modal, displays a success message, and updates the UI accordingly. If the request fails, it displays an error message.
Description
If the post is in the Q&A category and from a moderator, add a flag
Backend: Figure out how posts are displayed and filtered for each category Frontend: Physically change appearance
Community forum reference
No response