summaryrefslogtreecommitdiff
path: root/classes/Foreign_link.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-04-13 19:19:26 -0700
committerZach Copley <zach@controlyourself.ca>2009-04-13 19:19:26 -0700
commitad5dd9030bf919dba95e1ca066acef71a2d3e6bd (patch)
treee1bb580421bc2af1a714c903b8bd31091286f208 /classes/Foreign_link.php
parent4f966709e680048fa4c2631c33250bbaaff6cc71 (diff)
Add option to Twitter settings for importing Friends Timeline
Diffstat (limited to 'classes/Foreign_link.php')
-rw-r--r--classes/Foreign_link.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/Foreign_link.php b/classes/Foreign_link.php
index afc0e2180..5d9c82a85 100644
--- a/classes/Foreign_link.php
+++ b/classes/Foreign_link.php
@@ -57,13 +57,19 @@ class Foreign_link extends Memcached_DataObject
return null;
}
- function set_flags($noticesync, $replysync, $friendsync)
+ function set_flags($noticesend, $noticerecv, $replysync, $friendsync)
{
- if ($noticesync) {
+ if ($noticesend) {
$this->noticesync |= FOREIGN_NOTICE_SEND;
} else {
$this->noticesync &= ~FOREIGN_NOTICE_SEND;
}
+
+ if ($noticerecv) {
+ $this->noticesync |= FOREIGN_NOTICE_RECV;
+ } else {
+ $this->noticesync &= ~FOREIGN_NOTICE_RECV;
+ }
if ($replysync) {
$this->noticesync |= FOREIGN_NOTICE_SEND_REPLY;