CMU-313 / nodebb-f24-hunan-hunters

cmu-313-f24-nodebb-f24-NodeBB created by GitHub Classroom
GNU General Public License v3.0
0 stars 0 forks source link

Change Appearance of All Moderator Posts If In the Q&A Section #11

Open emshyu opened 1 week ago

emshyu commented 1 week ago

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

Accheng21 commented 3 days 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.