aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-06-02 08:33:54 +0000
committerMario <mario@mariovavti.com>2021-06-02 08:33:54 +0000
commit7d82a34538936a219a0d1977fbadbe2cf72ed74a (patch)
tree4a637ed32b3d2885df7f29639349c0e7af80ea34
parent217168628421f4e394b9b85e33d2d653d8b5b3d6 (diff)
downloadvolse-hubzilla-7d82a34538936a219a0d1977fbadbe2cf72ed74a.tar.gz
volse-hubzilla-7d82a34538936a219a0d1977fbadbe2cf72ed74a.tar.bz2
volse-hubzilla-7d82a34538936a219a0d1977fbadbe2cf72ed74a.zip
Make pubstream ordering configurable
-rw-r--r--Zotlabs/Module/Pubstream.php2
-rw-r--r--doc/hidden_configs.bb1
2 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php
index 113f0a196..9c63c735d 100644
--- a/Zotlabs/Module/Pubstream.php
+++ b/Zotlabs/Module/Pubstream.php
@@ -197,7 +197,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
if($update) {
- $ordering = "commented";
+ $ordering = get_config('system', 'pubstream_ordering', 'commented');
if($load) {
if($mid) {
diff --git a/doc/hidden_configs.bb b/doc/hidden_configs.bb
index 27ea415bd..4eac1aa6e 100644
--- a/doc/hidden_configs.bb
+++ b/doc/hidden_configs.bb
@@ -87,6 +87,7 @@ Options are:
[*= system.proc_run_use_exec ] If 1, use the exec system call in proc_run to run background tasks. By default we use proc_open and proc_close. On some (currently rare) systems this does not work well.
[*= system.projecthome ] Display the project page on your home page for logged out viewers.
[*= system.projecthome ] Set the project homepage as the homepage of your hub. (Obsolete)
+ [*= system.pubstream_ordering ] Set pubstream ordering. Possible values 'commented' (default), 'created' and 'edited'.
[*= system.register_link ] path to direct to from the "register" link on the login form. On closed sites this will direct to 'pubsites'. For open sites it will normally redirect to 'register' but you may change this to a custom site page offering subscriptions or whatever.
[*= system.reserved_channels ] Don't allow members to register channels with this comma separated list of names (no spaces)
[*= system.sellpage ] A URL shown in the public sites list to sell your hub - display service classes, etc.