Closed hjoad closed 1 year ago
Huda: 6 hours Maria: 6 hours
/src/topics/index.js
- Added an if condition to check if the topic is anonymous and if the current user is the one that posted the topic. This way the profile picture should only show up as the anonymous icon if the topic is set to anonymous and the person viewing the post is not the same person who made the post. Additionally, if the topic is anonymous, the topic uid is set to 0. However, this did not work since the loop runs before any avatars are rendered, so if the user has any anonymous posts, all of that user's posts will have an anonymous icon and display name.
We pushed these changes to a branch: anonProfileCategoryPage
Estimated effort for each task: This should be a simple task because there is an existing function that will help solve this issue and only template changes need to be made. Dependencies: The attribute for anonymous in the back-end should work Acceptance criteria: Posts made anonymous should have a special profile picture when viewing it from the Category page.