Permission to let users see past the first post of discussions
Adds a new permission to Flarum to let users see past the first post of discussions.
Set the permission to "Members" to hide the content from guests but show them to logged in users. A message will invite the user to log in when they view the discussion.
If you set the permission to something else than member, a different message is shown saying the user is not allowed to see the discussion content. You can customize the messages with the Linguist extension.
The permission can be applied to individual top-level tags. Due to limitations in the Flarum tag system, if the discussion possesses any tag that isn't explicitly restricted, the user will be able to see the posts.
Two additional settings allow customizing the restrictions even further:
- Hide comment count on discussion list: this will hide the total post and recipient count from the API and the homepage.
- Hide last post user and date on discussion list: this will hide the lastUser, lastPost, last post date and number as well as the user last read date and number from the API and homepage.
composer require clarkwinkelmann/flarum-ext-see-past-first-post
The initial version of this extension has been sponsored by HereWeLink