feat: Anonymous (optionally) reactions #69
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature that allows guest/anonymous users to react to posts. This feature can be toggled on or off via an admin setting. The default is off.
Here is a summary of the changes:
Backend: Logic has been added to handle reactions from anonymous users. This includes creating, deleting, and fetching reactions. The data structure has been updated to include anonymous reactions in the reaction counts.
Frontend: The components that display reactions have been updated to support anonymous users. This includes the reactions list on each post, the modal that shows all reactions to a post, and the action to add a reaction.
This feature enhances the interactivity of forums by allowing guest users to react to posts. It also provides forum admins with more control over the level of interaction they want to enable on their forums.
Admin:
![image](https://private-user-images.githubusercontent.com/16573496/253919645-b4a1c42b-41db-460d-9b7a-1cd0721c0a58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTM2NDEsIm5iZiI6MTczOTU5MzM0MSwicGF0aCI6Ii8xNjU3MzQ5Ni8yNTM5MTk2NDUtYjRhMWM0MmItNDFkYi00NjBkLTliN2EtMWNkMDcyMWMwYTU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzd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