FriendsOfFlarum / reactions

❤ A Flarum extension that adds reactions to your Flarum Community!
MIT License
19 stars 11 forks source link

feat: Anonymous (optionally) reactions #69

Closed imorland closed 1 year ago

imorland commented 1 year ago

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:

  1. 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.

  2. 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

Forum: image