Analogous changes on Undo Follow

This commit is contained in:
Diogo Cordeiro 2018-07-31 20:34:03 +01:00
parent b9a74d6ba4
commit 933a228072

View File

@ -147,7 +147,7 @@ class Activitypub_postman
$res = $this->send(json_encode($data), $this->to[0]->get_inbox());
$res_body = json_decode($res->getBody()->getContents());
if ($res->getStatusCode() == 200 || $res->getStatusCode() == 409) {
if ($res->getStatusCode() == 200 || $res->getStatusCode() == 202 || $res->getStatusCode() == 409) {
$pending_list = new Activitypub_pending_follow_requests($this->actor->getID(), $this->to[0]->getID());
$pending_list->remove();
return true;