forked from GNUsocial/gnu-social
Refactoring on notification mail generation: common profile & footer chunks pulled out, notifications added for group joins.
This commit is contained in:
@@ -55,4 +55,15 @@ class Group_join_queue extends Managed_DataObject
|
||||
$rq->insert();
|
||||
return $rq;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send notifications via email etc to group administrators about
|
||||
* this exciting new pending moderation queue item!
|
||||
*/
|
||||
public function notify()
|
||||
{
|
||||
$joiner = Profile::staticGet('id', $this->profile_id);
|
||||
$group = User_group::staticGet('id', $this->group_id);
|
||||
mail_notify_group_join_pending($group, $joiner);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user