Make tag-per-group optional, default false
This commit is contained in:
parent
e686199616
commit
4fa7f147b0
2
README
2
README
@ -1392,6 +1392,8 @@ maxaliases: maximum number of aliases a group can have. Default 3. Set
|
|||||||
desclimit: maximum number of characters to allow in group descriptions.
|
desclimit: maximum number of characters to allow in group descriptions.
|
||||||
null (default) means to use the site-wide text limits. 0
|
null (default) means to use the site-wide text limits. 0
|
||||||
means no limit.
|
means no limit.
|
||||||
|
addtag: Whether to add a tag for the group nickname for every group post
|
||||||
|
(pre-1.0.x behaviour). Defaults to false.
|
||||||
|
|
||||||
oembed
|
oembed
|
||||||
--------
|
--------
|
||||||
|
@ -1071,13 +1071,15 @@ class Notice extends Memcached_DataObject
|
|||||||
common_log_db_error($gi, 'INSERT', __FILE__);
|
common_log_db_error($gi, 'INSERT', __FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we automatically add a tag for every group name, too
|
if (common_config('group', 'addtag')) {
|
||||||
|
// we automatically add a tag for every group name, too
|
||||||
|
|
||||||
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->nickname),
|
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->nickname),
|
||||||
'notice_id' => $this->id));
|
'notice_id' => $this->id));
|
||||||
|
|
||||||
if (is_null($tag)) {
|
if (is_null($tag)) {
|
||||||
$this->saveTag($group->nickname);
|
$this->saveTag($group->nickname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$groups[] = clone($group);
|
$groups[] = clone($group);
|
||||||
|
@ -268,7 +268,8 @@ $default =
|
|||||||
array('desclimit' => null),
|
array('desclimit' => null),
|
||||||
'group' =>
|
'group' =>
|
||||||
array('maxaliases' => 3,
|
array('maxaliases' => 3,
|
||||||
'desclimit' => null),
|
'desclimit' => null,
|
||||||
|
'addtag' => false),
|
||||||
'peopletag' =>
|
'peopletag' =>
|
||||||
array('maxtags' => 100, // maximum number of tags a user can create.
|
array('maxtags' => 100, // maximum number of tags a user can create.
|
||||||
'maxpeople' => 500, // maximum no. of people with the same tag by the same user
|
'maxpeople' => 500, // maximum no. of people with the same tag by the same user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user