You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2.x] feat: add setting to disable sticky pinning on All Discussions page (#4609)
* feat(sticky): add setting to disable sticky pinning on All Discussions
Adds an admin toggle (default: enabled) that gates sticky pinning on
the All Discussions page. When disabled, stickied discussions appear
at their natural last_posted_at position. Tag pages are unaffected.
Restructures PinStickiedDiscussionsToTop so the new toggle is the
master gate for /all and properly subordinates only_sticky_unread_-
discussions, which is shown disabled in the admin UI when the master
toggle is off.
Consolidates multiple Extend\Settings declarations into one block.
* test(sticky): pin no-sticky-pinning behaviour on a non-tag filter
With only_sticky_unread_discussions off, the reordered mutator no longer
pins stickied discussions on filtered listings other than a single tag page
(e.g. a by-author search) — pinning is scoped to /all and single-tag pages.
This locks that behaviour, which previously went untested.
---------
Co-authored-by: IanM <ian@morland.me>
Copy file name to clipboardExpand all lines: extensions/sticky/locale/en.yml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ flarum-sticky:
10
10
enable_display_excerpt: Show an excerpt of the first post when a sticky discussion is unread
11
11
only_sticky_unread_discussions_label: Only sticky unread discussions
12
12
only_sticky_unread_discussions_help: On the All Discussions page, unread sticky discussions pin to the top, while read sticky discussions follow the regular order.
13
+
pin_sticky_on_all_discussions_label: Pin stickied discussions on the All Discussions page
14
+
pin_sticky_on_all_discussions_help: When enabled (default), stickied discussions are pinned at the top of the All Discussions page. When disabled, they appear at their natural position by latest activity. Tag pages always pin stickied discussions to the top regardless of this setting.
13
15
14
16
# These translations are used in the Permissions page of the admin interface.
0 commit comments