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

Changed src/user/topics.js and src/user/data.js to Support Anonymous … #23

Closed utkanuygur closed 7 months ago

utkanuygur commented 7 months ago

…Postds

These changes add an anonymous filter to addTopicIdToUser to check for whether the uid is -1 and return if so. Additionally, the new function anonymize post now sets username and slug to anonymous and uid to -1 to start the process of anonymizing,

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 7874445945

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/user/topics.js 1 2 50.0%
src/user/data.js 0 4 0.0%
<!-- Total: 1 6 16.67% -->
Files with Coverage Reduction New Missed Lines %
src/user/approval.js 3 87.39%
<!-- Total: 3 -->
Totals Coverage Status
Change from base Build 7864907236: -0.02%
Covered Lines: 22630
Relevant Lines: 25371

💛 - Coveralls