configuration options for text limits

This commit is contained in:
Evan Prodromou 2009-08-20 17:25:54 -04:00
parent 900ca5c50c
commit a28bbdfb0f
2 changed files with 34 additions and 3 deletions

23
README
View File

@ -967,6 +967,9 @@ shorturllength: Length of URL at which URLs in a message exceeding 140
dupelimit: minimum time allowed for one person to say the same thing dupelimit: minimum time allowed for one person to say the same thing
twice. Default 60s. Anything lower is considered a user twice. Default 60s. Anything lower is considered a user
or UI error. or UI error.
textlimit: default max size for texts in the site. Defaults to 140,
null means no limit. Can be fine-tuned for notices, messages,
profile bios and group descriptions.
db db
-- --
@ -1269,6 +1272,8 @@ banned: an array of usernames and/or profile IDs of 'banned' profiles.
The site will reject any notices by these users -- they will The site will reject any notices by these users -- they will
not be accepted at all. (Compare with blacklisted users above, not be accepted at all. (Compare with blacklisted users above,
whose posts just won't show up in the public stream.) whose posts just won't show up in the public stream.)
biolimit: max character length of bio; null means to use the site
text limit default.
newuser newuser
------- -------
@ -1365,6 +1370,8 @@ Options for group functionality.
maxaliases: maximum number of aliases a group can have. Default 3. Set maxaliases: maximum number of aliases a group can have. Default 3. Set
to 0 or less to prevent aliases in a group. to 0 or less to prevent aliases in a group.
desclimit: maximum number of characters to allow in group descriptions.
null (default) means to use the site-wide text limits.
oohembed oohembed
-------- --------
@ -1443,6 +1450,22 @@ linkcolor: Hex color of all links.
backgroundimage: Image to use for the background. backgroundimage: Image to use for the background.
disposition: Flags for whether or not to tile the background image. disposition: Flags for whether or not to tile the background image.
notice
------
Configuration options specific to notices.
contentlimit: max length of the plain-text content of a notice.
Default is null, meaning to use the site-wide text limit.
message
-------
Configuration options specific to messages.
contentlimit: max length of the plain-text content of a message.
Default is null, meaning to use the site-wide text limit.
Plugins Plugins
======= =======

View File

@ -113,7 +113,9 @@ $config =
'ssl' => 'never', 'ssl' => 'never',
'sslserver' => null, 'sslserver' => null,
'shorturllength' => 30, 'shorturllength' => 30,
'dupelimit' => 60), # default for same person saying the same thing 'dupelimit' => 60, # default for same person saying the same thing
'textlimit' => 140,
),
'syslog' => 'syslog' =>
array('appname' => 'laconica', # for syslog array('appname' => 'laconica', # for syslog
'priority' => 'debug', # XXX: currently ignored 'priority' => 'debug', # XXX: currently ignored
@ -137,7 +139,8 @@ $config =
array('blacklist' => array(), array('blacklist' => array(),
'featured' => array()), 'featured' => array()),
'profile' => 'profile' =>
array('banned' => array()), array('banned' => array(),
'biolimit' => null),
'avatar' => 'avatar' =>
array('server' => null, array('server' => null,
'dir' => INSTALLDIR . '/avatar/', 'dir' => INSTALLDIR . '/avatar/',
@ -246,7 +249,8 @@ $config =
'filecommand' => '/usr/bin/file', 'filecommand' => '/usr/bin/file',
), ),
'group' => 'group' =>
array('maxaliases' => 3), array('maxaliases' => 3,
'desclimit' => null),
'oohembed' => array('endpoint' => 'http://oohembed.com/oohembed/'), 'oohembed' => array('endpoint' => 'http://oohembed.com/oohembed/'),
'search' => 'search' =>
array('type' => 'fulltext'), array('type' => 'fulltext'),
@ -261,6 +265,10 @@ $config =
'linkcolor' => null, 'linkcolor' => null,
'backgroundimage' => null, 'backgroundimage' => null,
'disposition' => null), 'disposition' => null),
'notice' =>
array('contentlimit' => null),
'message' =>
array('contentlimit' => null),
); );
$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options'); $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');