forked from GNUsocial/gnu-social
Fixes for GroupPrivateMessage, OStatus due to changes in group output events, and some internal bugs using wrong vars
This commit is contained in:
@@ -348,14 +348,15 @@ class GroupPrivateMessagePlugin extends Plugin
|
||||
/**
|
||||
* To add a "Message" button to the group profile page
|
||||
*
|
||||
* @param Action $action The showgroup action being shown
|
||||
* @param Widget $widget The showgroup action being shown
|
||||
* @param User_group $group The current group
|
||||
*
|
||||
* @return boolean hook value
|
||||
*/
|
||||
function onEndGroupActionsList($action, $group)
|
||||
function onEndGroupActionsList($widget, $group)
|
||||
{
|
||||
$cur = common_current_user();
|
||||
$action = $widget->out;
|
||||
|
||||
if (empty($cur)) {
|
||||
return true;
|
||||
@@ -402,6 +403,7 @@ class GroupPrivateMessagePlugin extends Plugin
|
||||
$ignored = array();
|
||||
|
||||
$forcePrivate = false;
|
||||
$profile = $notice->getProfile();
|
||||
|
||||
if ($count > 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user