Added flag feature and moderation group functionality
prajnapuranik2023-04-20 21:24
Groups now have a flag button that allows users to flag other posts. When a flag is flagged 3 times, it is sent to the moderator for review
The root user now has an additional group - "Moderation". Root can add other users as members to the group as moderators
The Moderation group allows moderators to review flagged posts. Moderators see each flagged post as a separate thread.
The Moderation group has "Approve", "Delete", and "Original Post" buttons in addition to the comment button. Moderators can comment, approve, delete as well as view the original thread which contains the flagged post
Approving a flagged post resets the flag count associated with the post
Deleting a post shows the message "This post has been flagged" to other users in the group
administrator2023-04-23 18:11
Hey Prajna,
Thanks for the patch. Looking through I see some strings that are in English that should be using Yioop's localization method instead. Namely,
on the buttons:
Are you sure you want to delete ...
Are you sure you want to approve ...
Can you fix these so they are localizable and make a new patch? Make sure to do a git pull before your new patch as a couple other patches might be landing soon.
Best,
Chris
prajnapuranik2023-04-30 21:25
Hi Professor,
I've attached a patch with the suggested fixes. Please let me know if there are any other issues with the patch.
Groups now have a flag button that allows users to flag other posts. When a flag is flagged 3 times, it is sent to the moderator for review The root user now has an additional group - "Moderation". Root can add other users as members to the group as moderators The Moderation group allows moderators to review flagged posts. Moderators see each flagged post as a separate thread. The Moderation group has "Approve", "Delete", and "Original Post" buttons in addition to the comment button. Moderators can comment, approve, delete as well as view the original thread which contains the flagged post Approving a flagged post resets the flag count associated with the post Deleting a post shows the message "This post has been flagged" to other users in the group
Hey Prajna,
Thanks for the patch. Looking through I see some strings that are in English that should be using Yioop's localization method instead. Namely, on the buttons: Are you sure you want to delete ... Are you sure you want to approve ... Can you fix these so they are localizable and make a new patch? Make sure to do a git pull before your new patch as a couple other patches might be landing soon.
Best, Chris
Hi Professor,
I've attached a patch with the suggested fixes. Please let me know if there are any other issues with the patch.
Thanks, Prajna
Moderation_Fixed.patch
superceded by issue 260
Attachments:
Moderation.patch