desclimit: maximum number of characters to allow in group descriptions.
null (default) means to use the site-wide text limits. 0
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
--------
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),
- 'notice_id' => $this->id));
+ $tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->nickname),
+ 'notice_id' => $this->id));
- if (is_null($tag)) {
- $this->saveTag($group->nickname);
+ if (is_null($tag)) {
+ $this->saveTag($group->nickname);
+ }
}
$groups[] = clone($group);
array('desclimit' => null),
'group' =>
array('maxaliases' => 3,
- 'desclimit' => null),
+ 'desclimit' => null,
+ 'addtag' => false),
'peopletag' =>
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