Run block checks on remote OStatus replies

This commit is contained in:
Brion Vibber 2010-04-09 10:46:18 -07:00
parent 41062d387f
commit 9cb0dab270
1 changed files with 8 additions and 0 deletions

View File

@ -964,11 +964,19 @@ class Notice extends Memcached_DataObject
*/ */
function saveKnownReplies($uris) function saveKnownReplies($uris)
{ {
if (empty($uris)) {
return;
}
$sender = Profile::staticGet($this->profile_id);
foreach ($uris as $uri) { foreach ($uris as $uri) {
$user = User::staticGet('uri', $uri); $user = User::staticGet('uri', $uri);
if (!empty($user)) { if (!empty($user)) {
if ($user->hasBlocked($sender)) {
continue;
}
$reply = new Reply(); $reply = new Reply();