summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-09 14:06:24 -0400
committerEvan Prodromou <evan@status.net>2010-04-09 14:06:24 -0400
commitce40425533af595fee780bb18089266a836ab828 (patch)
tree9208be1a04603f92ee044388838b7fa4500583ea /classes
parent674b0ddaace4a478092a89b9f63eedb3c4ad63e4 (diff)
parent9cb0dab27036b237f9f325dc14c417e23fd475f7 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index be3e9ca2a..b416e2ff2 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -964,11 +964,19 @@ class Notice extends Memcached_DataObject
*/
function saveKnownReplies($uris)
{
+ if (empty($uris)) {
+ return;
+ }
+ $sender = Profile::staticGet($this->profile_id);
+
foreach ($uris as $uri) {
$user = User::staticGet('uri', $uri);
if (!empty($user)) {
+ if ($user->hasBlocked($sender)) {
+ continue;
+ }
$reply = new Reply();