From: Brion Vibber Date: Mon, 18 Oct 2010 19:17:11 +0000 (-0700) Subject: Merge branch '0.9.x' into 1.0.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7765ddae81e9b29af06009d961b3d56b293f527c;p=quix0rs-gnu-social.git Merge branch '0.9.x' into 1.0.x Conflicts: README lib/default.php --- 7765ddae81e9b29af06009d961b3d56b293f527c diff --cc README index 0ee83a9ee8,35c510e2b8..d69ec8fdd0 --- a/README +++ b/README @@@ -1499,22 -1502,33 +1500,49 @@@ disallow: Array of (virtual) directorie 'search', 'message', 'settings', 'admin'. Ignored when site is private, in which case the entire site ('/') is disallowed. + api + --- + + Options for the Twitter-like API. + + realm: HTTP Basic Auth realm (see http://tools.ietf.org/html/rfc2617 + for details). Some third-party tools like ping.fm want this to be + 'Identi.ca API', so set it to that if you want to. default = null, + meaning 'something based on the site name'. + + nofollow + -------- + + We optionally put 'rel="nofollow"' on some links in some pages. The + following configuration settings let you fine-tune how or when things + are nofollowed. See http://en.wikipedia.org/wiki/Nofollow for more + information on what 'nofollow' means. + + subscribers: whether to nofollow links to subscribers on the profile + and personal pages. Default is true. + members: links to members on the group page. Default true. + peopletag: links to people listed in the peopletag page. Default true. + external: external links in notices. One of three values: 'sometimes', + 'always', 'never'. If 'sometimes', then external links are not + nofollowed on profile, notice, and favorites page. Default is + 'sometimes'. + +url +--- + +Everybody loves URL shorteners. These are some options for fine-tuning +how and when the server shortens URLs. + +shortener: URL shortening service to use by default. Users can override + individually. 'ur1.ca' by default. +maxlength: If an URL is strictly longer than this limit, it will be + shortened. Note that the URL shortener service may return an + URL longer than this limit. Defaults to 25. Users can + override. If set to 0, all URLs will be shortened. +maxnoticelength: If a notice is strictly longer than this limit, all + URLs in the notice will be shortened. Users can override. + -1 means the text limit for notices. + Plugins ======= diff --cc lib/default.php index 279a7a3d11,a19453fce4..a1dac7b5e1 --- a/lib/default.php +++ b/lib/default.php @@@ -319,11 -317,8 +319,12 @@@ $default 'nofollow' => array('subscribers' => true, 'members' => true, - 'peopletag' => true), + 'peopletag' => true, + 'external' => 'sometimes'), // Options: 'sometimes', 'never', default = 'sometimes' + 'url' => + array('shortener' => 'ur1.ca', + 'maxlength' => 25, + 'maxnoticelength' => -1), 'http' => // HTTP client settings when contacting other sites array('ssl_cafile' => false, // To enable SSL cert validation, point to a CA bundle (eg '/usr/lib/ssl/certs/ca-certificates.crt') 'curl' => false, // Use CURL backend for HTTP fetches if available. (If not, PHP's socket streams will be used.)