X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FForeign_link.php;h=6065609512ce76e8461a3952b910e18cb94c50e1;hb=d7e3bab0b81fa7cd7f120e4ff53f89c70c18bad5;hp=af2b3f189da54fb8cf1e0581dd3bfe3e5233b2cc;hpb=53d6a8ba611716ce47da291bc38695be24212c3d;p=quix0rs-gnu-social.git diff --git a/classes/Foreign_link.php b/classes/Foreign_link.php index af2b3f189d..6065609512 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;