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')) {
|
if (common_config('group', 'addtag')) {
|
||||||
// we automatically add a tag for every group name, too
|
// we automatically add a tag for every group name, too
|
||||||
|
common_debug('Adding hashtag matching group nickname: '._ve($group->getNickname()));
|
||||||
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->nickname),
|
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($group->getNickname()),
|
||||||
'notice_id' => $this->id));
|
'notice_id' => $this->getID()));
|
||||||
|
|
||||||
if (is_null($tag)) {
|
if (is_null($tag)) {
|
||||||
$this->saveTag($group->nickname);
|
$this->saveTag($group->getNickname());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ $default =
|
|||||||
'group' =>
|
'group' =>
|
||||||
array('maxaliases' => 3,
|
array('maxaliases' => 3,
|
||||||
'desclimit' => null,
|
'desclimit' => null,
|
||||||
'addtag' => false),
|
'addtag' => true),
|
||||||
'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…
Reference in New Issue
Block a user