Add option to Twitter settings for importing Friends Timeline

This commit is contained in:
Zach Copley
2009-04-13 19:19:26 -07:00
parent 4f966709e6
commit ad5dd9030b
2 changed files with 23 additions and 8 deletions

View File

@@ -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;