forked from GNUsocial/gnu-social
Added some notes in the comments
This commit is contained in:
parent
4e4ba24c00
commit
ee3fc8ba03
@ -97,6 +97,8 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: Twitter no longer supports IM
|
||||||
|
|
||||||
if (!in_array(strtolower($this->device), array('sms', 'im', 'none'))) {
|
if (!in_array(strtolower($this->device), array('sms', 'im', 'none'))) {
|
||||||
$this->clientError(
|
$this->clientError(
|
||||||
_(
|
_(
|
||||||
@ -135,6 +137,12 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
|
|||||||
|
|
||||||
$twitter_user = $this->twitterUserArray($profile, true);
|
$twitter_user = $this->twitterUserArray($profile, true);
|
||||||
|
|
||||||
|
// Note: this Twitter API method is retarded because it doesn't give
|
||||||
|
// any success/failure information. Twitter's docs claim that the
|
||||||
|
// notification field will change to reflect notification choice,
|
||||||
|
// but that's not true; notification> is used to indicate
|
||||||
|
// whether the auth user is following the user in question.
|
||||||
|
|
||||||
if ($this->format == 'xml') {
|
if ($this->format == 'xml') {
|
||||||
$this->initDocument('xml');
|
$this->initDocument('xml');
|
||||||
$this->showTwitterXmlUser($twitter_user);
|
$this->showTwitterXmlUser($twitter_user);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user