CMU-17313Q / fall23-nodebb-just-relax

fall23-nodebb-just-relax created by GitHub Classroom
GNU General Public License v3.0
0 stars 2 forks source link

updated template for Anonmity #57

Closed rama0711 closed 1 year ago

rama0711 commented 1 year ago

resolved #30

In order to reflect the anonymity feature in the Q&A topic list page, two string attributes were added to the topic object (userslug and displayname which already exists for the user but not for a topic object). This is because the topics_list.tpl is using the user information to display the name and profile link. However since we want a user to be able to post both types of posts anonymous and not anonymous then a new attribute was added (types/topic.ts), updates in (src/topics/create.js and index.js), and displayed on (themes/nodebb-theme-persona/templates/partials/topics_list.tpl)