diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-09 10:47:45 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-09 10:47:45 -0700 |
commit | f5b00404d8dc6d10c0f2a8a7d8858cf225303e8d (patch) | |
tree | 9509eb3c97ec37748fafb1b21bbdba6651981cca /classes | |
parent | 4b20d68c4851a2d7a7fca521f07ddba74187c53b (diff) | |
parent | 80bd77ced34ff87f5da2739e8ee95d627741d3bf (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 8 |
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(); |