summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-02-11 17:46:53 -0800
committerZach Copley <zach@controlyourself.ca>2009-02-11 17:46:53 -0800
commit7155cf813de1502e796c0eac1e680289f3552c29 (patch)
tree569e2042bda0aa3ab04c3ff27365afbb4955bc79 /actions
parent21f6c911611fe9debfae9a4c123e91294bc877e3 (diff)
Move/reorg Twitter broadcast code to lib/twitter.php in prep for
making a twitterqueuehandler.
Diffstat (limited to 'actions')
-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();