forked from GNUsocial/gnu-social
default to #addtag on !group mention
This commit is contained in:
parent
07458e5375
commit
000af6d9ee
@ -1583,12 +1583,12 @@ class Notice extends Managed_DataObject
|
||||
|
||||
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));
|
||||
common_debug('Adding hashtag matching group nickname: '._ve($group->getNickname()));
|
||||
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->getNickname()),
|
||||
'notice_id' => $this->getID()));
|
||||
|
||||
if (is_null($tag)) {
|
||||
$this->saveTag($group->nickname);
|
||||
$this->saveTag($group->getNickname());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -297,7 +297,7 @@ $default =
|
||||
'group' =>
|
||||
array('maxaliases' => 3,
|
||||
'desclimit' => null,
|
||||
'addtag' => false),
|
||||
'addtag' => true),
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user