]> git.mxchange.org Git - friendica.git/blobdiff - static/defaults.config.php
Partly revert coding for compatibility issues
[friendica.git] / static / defaults.config.php
index a4fd11662fd34c5fe38da7b5033aed93491cf01b..8111a68f1aadb4c75d54f03debf3e14fbf6d9908 100644 (file)
@@ -1,12 +1,28 @@
 <?php
-
-// CONFIG.PHP
-
-/* This file declares the default values for the base config of Friendica.
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ * This file declares the default values for the base config of Friendica.
  *
  * These configuration values aren't accessible from the admin settings page and custom values must be set in config/local.config.php
  *
  * Please don't edit this file directly as its content may change in the upcoming versions.
+ *
  */
 
 return [
@@ -29,8 +45,23 @@ return [
                'database' => '',
 
                // charset (String)
-               // Database connexion charset. Changing this value will likely corrupt special characters.
+               // Database connection charset. Changing this value will likely corrupt special characters.
                'charset' => 'utf8mb4',
+
+               // emulate_prepares (Boolean) (Experimental)
+               // If enabled, prepared statements will be emulated.
+               // In combination with MySQLi this will cast all return values to strings.
+               'emulate_prepares' => false,
+
+               // pdo_emulate_prepares (Boolean) (Experimental)
+               // If enabled, the builtin emulation for prepared statements is used.
+               // Due to limitations of that emulation (all return values are casted as strings)
+               // this will most likely cause issues and should not be used on production systems.
+               'pdo_emulate_prepares' => false,
+
+               // disable_pdo (Boolean)
+               // PDO is used by default (if available). Otherwise MySQLi will be used.
+               'disable_pdo' => false,
        ],
        'config' => [
                // admin_email (Comma-separated list)
@@ -59,6 +90,10 @@ return [
                // Only show small preview pictures.
                'always_show_preview' => false,
 
+               // ap_always_bcc (Boolean)
+               // Adresses non-mentioned ActivityPub receivers by BCC instead of CC. Increases privacy, decreases performance.
+               'ap_always_bcc' => false,
+
                // archival_days (Integer)
                // Number of days that we try to deliver content before we archive a contact.
                'archival_days' => 32,
@@ -68,6 +103,10 @@ return [
                // chose "Remember me" when logging in is considered logged out.
                'auth_cookie_lifetime' => 7,
 
+               // big_emojis (Boolean)
+               // Display "Emoji Only" posts in big.
+               'big_emojis' => false,
+
                // block_local_dir (Boolean)
                // Deny public access to the local user directory.
                'block_local_dir' => false,
@@ -104,9 +143,9 @@ return [
                // Watchlist of indexes to watch.
                'db_log_index_watch' => '',
 
-               // db_log_index_blacklist (Comma-separated list)
-               // Blacklist of indexes that shouldn't be watched.
-               'db_log_index_blacklist' => '',
+               // db_log_index_denylist (Comma-separated list)
+               // Deny list of indexes that shouldn't be watched.
+               'db_log_index_denylist' => '',
 
                // db_loglimit (Integer)
                // If a database call lasts longer than this value in seconds it is logged.
@@ -207,6 +246,15 @@ return [
                // If set true registration is only possible after a current member of the node has send an invitation.
                'invitation_only' => false,
 
+               // itemspage_network (Integer)
+               // default number of items per page in stream pages (network, community, profile/contact statuses, search)
+               'itemspage_network' => 40,
+
+               // itemspage_network_mobile (Integer)
+               // default number of items per page in stream pages (network, community, profile/contact statuses, search)
+               // on detected mobile devices
+               'itemspage_network_mobile' => 20,
+
                // like_no_comment (Boolean)
                // Don't update the "commented" value of an item when it is liked.
                'like_no_comment' => false,
@@ -244,6 +292,10 @@ return [
                // Maximum number of queue items for a single contact before subsequent messages are discarded.
                'max_contact_queue' => 500,
 
+               // max_feed_items (Integer)
+               // Maximum number of feed items that are fetched and processed. For unlimited items set to 0.
+               'max_feed_items' => 20,
+
                // max_image_length (Integer)
                // An alternate way of limiting picture upload sizes.
                // Specify the maximum pixel  length that pictures are allowed to be (for non-square pictures, it will apply to the longest side).
@@ -293,10 +345,6 @@ return [
                // Don't show smilies.
                'no_smilies' => false,
 
-               // no_view_full_size (Boolean)
-               // Don't add the link "View full size" under a resized image.
-               'no_view_full_size' => false,
-
                // optimize_items (Boolean)
                // Triggers an SQL command to optimize the item table before expiring items.
                'optimize_items' => false,
@@ -374,6 +422,14 @@ return [
                // When the global community page is enabled, use this option to display a hint above the stream, that this is a collection of all public top-level postings that arrive on your node.
                'show_global_community_hint' => false,
 
+               // show_received (Boolean)
+               // Show the receive data along with the post creation date
+               'show_received' => true,
+
+               // show_received_seconds (Integer)
+               // Display the received date when the difference between received and created is higher than this.
+               'show_received_seconds' => 500,
+
                // show_unsupported_addons (Boolean)
                // Show all addons including the unsupported ones.
                'show_unsupported_addons' => false,
@@ -463,6 +519,10 @@ return [
                // Logs every call to /inbox as a JSON file in Friendica's temporary directory
                'ap_inbox_log' => false,
 
+               // show_direction (Boolean)
+               // Display if a post had been fetched or had been pushed towards our server
+               'show_direction' => false,
+
                // total_ap_delivery (Boolean)
                // Deliver via AP to every possible receiver and we suppress the delivery to these contacts with other protocols
                'total_ap_delivery' => false,