DI::mstdnError()->UnprocessableEntity();
}
+ $request = $this->getRequest([
+ 'notify' => false, // Notify on new posts.
+ ], $request);
+
$contact = Contact::getById($this->parameters['id'], ['url']);
$result = Contact::createFromProbeForUser($uid, $contact['url']);
DI::mstdnError()->UnprocessableEntity($result['message']);
}
+ Contact::update(['notify_new_posts' => $request['notify']], ['id' => $result['cid']]);
+
System::jsonExit(DI::mstdnRelationship()->createFromContactId($result['cid'], $uid)->toArray());
}
}