summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-10 15:23:33 -0800
committerZach Copley <zach@status.net>2009-11-10 15:23:33 -0800
commitee3fc8ba03ddd8451cac60547af72ea2cef7dc6a (patch)
tree12be2eb3d1ef2d4556aefb036724c61a88491b73
parent4e4ba24c007fee94662018e7135f2db1e7c847b3 (diff)
Added some notes in the comments
-rw-r--r--actions/apiaccountupdatedeliverydevice.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/actions/apiaccountupdatedeliverydevice.php b/actions/apiaccountupdatedeliverydevice.php
index 5b7176bbb..684906fe9 100644
--- a/actions/apiaccountupdatedeliverydevice.php
+++ b/actions/apiaccountupdatedeliverydevice.php
@@ -97,6 +97,8 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
return;
}
+ // Note: Twitter no longer supports IM
+
if (!in_array(strtolower($this->device), array('sms', 'im', 'none'))) {
$this->clientError(
_(
@@ -135,6 +137,12 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
$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') {
$this->initDocument('xml');
$this->showTwitterXmlUser($twitter_user);