]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Feature.php
Add support for protocol-less URLs in BBCode::convert
[friendica.git] / src / Content / Feature.php
index 58ef856f3d7cc5b02d5228ff872bd2d151dabf97..0f119d3054cb1231706e3fdc2e99401c774b19d2 100644 (file)
@@ -20,7 +20,7 @@ class Feature
         * @return boolean
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function isEnabled($uid, $feature)
+       public static function isEnabled(int $uid, $feature)
        {
                $x = Config::get('feature_lock', $feature, false);
 
@@ -84,6 +84,7 @@ class Feature
                                ['multi_profiles',  L10n::t('Multiple Profiles'),      L10n::t('Ability to create multiple profiles'), false, Config::get('feature_lock', 'multi_profiles', false)],
                                ['photo_location',  L10n::t('Photo Location'),         L10n::t("Photo metadata is normally stripped. This extracts the location \x28if present\x29 prior to stripping metadata and links it to a map."), false, Config::get('feature_lock', 'photo_location', false)],
                                ['export_calendar', L10n::t('Export Public Calendar'), L10n::t('Ability for visitors to download the public calendar'), false, Config::get('feature_lock', 'export_calendar', false)],
+                               ['trending_tags',   L10n::t('Trending Tags'),          L10n::t('Show a community page widget with a list of the most popular tags in recent public posts.'), false, Config::get('feature_lock', 'trending_tags', false)],
                        ],
 
                        // Post composition