diff options
Diffstat (limited to 'classes/Foreign_link.php')
-rw-r--r-- | classes/Foreign_link.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/Foreign_link.php b/classes/Foreign_link.php index af2b3f189..606560951 100644 --- a/classes/Foreign_link.php +++ b/classes/Foreign_link.php @@ -59,13 +59,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; |