Bad error message in atompubmembershipfeed
This commit is contained in:
parent
f200d708bd
commit
7642f008fb
|
@ -237,15 +237,13 @@ class AtompubmembershipfeedAction extends ApiAuthAction
|
||||||
if ($activity->verb != ActivityVerb::JOIN) {
|
if ($activity->verb != ActivityVerb::JOIN) {
|
||||||
// TRANS: Client error displayed when not using the join verb.
|
// TRANS: Client error displayed when not using the join verb.
|
||||||
throw new ClientException(_('Can only handle join activities.'));
|
throw new ClientException(_('Can only handle join activities.'));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$groupObj = $activity->objects[0];
|
$groupObj = $activity->objects[0];
|
||||||
|
|
||||||
if ($groupObj->type != ActivityObject::GROUP) {
|
if ($groupObj->type != ActivityObject::GROUP) {
|
||||||
// TRANS: Client exception thrown when trying favorite an object that is not a notice.
|
// TRANS: Client exception thrown when trying to join something which is not a group
|
||||||
throw new ClientException(_('Can only fave notices.'));
|
throw new ClientException(_('Can only join groups.'));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$group = User_group::getKV('uri', $groupObj->id);
|
$group = User_group::getKV('uri', $groupObj->id);
|
||||||
|
|
Loading…
Reference in New Issue