clarkwinkelmann/flarum-ext-collapsible-posts

Collapse unimportant posts

Installs: 492

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 0

Open Issues: 1

Language:TypeScript

Type:flarum-extension

1.0.2 2024-08-07 17:41 UTC

This package is auto-updated.

Last update: 2024-12-07 18:29:52 UTC


README

MIT license Latest Stable Version Total Downloads Donate

This extension allows collapsing some posts, so they don't clutter the discussion, while still keeping them accessible.

Multiple collapse reasons can be created in the admin page. By default an "off-topic" reason message is offered.

When multiple posts that follow each other are collapsed for the same reason, a collapse series is created. A series can be expanded back by group of 20 posts.

The collapse state is purely visual and doesn't prevent the user from editing or deleting their post for example.

The extension uses a solution that's a bit hacky, so there might be incompatibilities with other extensions and it might break during minor Flarum updates.

Known/expected issues:

  • You cannot permalink collapsed posts.
  • Search engines probably won't be able to index collapsed posts.
  • Users of the REST API and noscript pages will only see the first post of a collapsed series.
  • If some posts in a discussion aren't visible to everyone (deleted, under approval, shadow hidden, etc.) a collapse series might be broken in 2 for reasons the visitor cannot see. This shouldn't break the navigation but not all combinations have been tested.
  • Using database table prefixes might break the extension.

Installation

composer require clarkwinkelmann/flarum-ext-collapsible-posts

Support

This extension is under minimal maintenance.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can contact me to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Links