forked from GNUsocial/gnu-social
set default address for showgroup
This commit is contained in:
parent
ec5a43bf4f
commit
a7380d5933
@ -365,6 +365,18 @@ class ShowgroupAction extends GroupDesignAction
|
||||
$this->raw(common_markup_to_html($m));
|
||||
$this->elementEnd('div');
|
||||
}
|
||||
|
||||
function noticeFormOptions()
|
||||
{
|
||||
$options = parent::noticeFormOptions();
|
||||
$cur = common_current_user();
|
||||
|
||||
if (!empty($cur) && $cur->isMember($this->group)) {
|
||||
$options['to_group'] = $this->group;
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
||||
class GroupAdminSection extends ProfileSection
|
||||
|
Loading…
Reference in New Issue
Block a user