summaryrefslogtreecommitdiff
path: root/actions/twittersettings.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-02-12 14:41:27 -0800
committerZach Copley <zach@controlyourself.ca>2009-02-12 14:41:27 -0800
commit47e595b092a0d8cd1d26a0170571c013fd992904 (patch)
tree6f9237305494efbf979bc93b3211f4324c168d9c /actions/twittersettings.php
parentdac8d103e69deb63c7eafe16286f23a66034d967 (diff)
parentf8e2ad0677d6eede93e3008452e36985ea999d74 (diff)
Merge branch 'queuehandlers' into 0.7.x
Diffstat (limited to 'actions/twittersettings.php')
-rw-r--r--actions/twittersettings.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php
index 2d41469bb..a79859bbf 100644
--- a/actions/twittersettings.php
+++ b/actions/twittersettings.php
@@ -32,6 +32,7 @@ if (!defined('LACONICA')) {
}
require_once INSTALLDIR.'/lib/connectsettingsaction.php';
+require_once INSTALLDIR.'/lib/twitter.php';
define('SUBSCRIPTIONS', 80);
@@ -90,7 +91,7 @@ class TwittersettingsAction extends ConnectSettingsAction
$fuser = null;
- $flink = Foreign_link::getByUserID($user->id, 1); // 1 == Twitter
+ $flink = Foreign_link::getByUserID($user->id, TWITTER_SERVICE);
if ($flink) {
$fuser = $flink->getForeignUser();
@@ -358,7 +359,7 @@ class TwittersettingsAction extends ConnectSettingsAction
$flink->user_id = $user->id;
$flink->foreign_id = $twit_user->id;
- $flink->service = 1; // Twitter
+ $flink->service = TWITTER_SERVICE;
$flink->credentials = $password;
$flink->created = common_sql_now();