CMU-313 / spring24-nodebb-apple

spring24-nodebb-apple created by GitHub Classroom
https://spring24-nodebb-apple-ibtybkwnba-uc.a.run.app/
GNU General Public License v3.0
0 stars 1 forks source link

Implemented locking feature #61

Closed Xeno852 closed 6 months ago

Xeno852 commented 6 months ago

DO NOT MERGE THIS IS NOT WORKING

PR just to update repo

Pull Request: Implement Topic Locking Feature

Summary

This pull request introduces the ability to lock and unlock topics within the forum. It aims to give topic owners, administrators, and moderators the authority to halt new replies on topics when deemed necessary, crucial for maintaining forum discussions' relevance and orderliness.

Motivation

The addition of this feature is motivated by the need to:

Changes Made

How to Test

  1. Go to a topic you own or for which you have admin/moderator rights.
  2. Click the "Lock" button to stop new replies; the topic should immediately reflect a locked status.
  3. On a locked topic, click "Unlock" to reopen it for new discussions.
cathyxfeiyang commented 6 months ago

It seems that the unlocking feature is implemented but locking feature is not? I'm not quite sure how this will function -- I don't think this functionality is complete

cathyxfeiyang commented 6 months ago

I think we might need more changes to the locking feature for this implementation to be complete