We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9cb0dab2 authored by Brion Vibber's avatar Brion Vibber

Run block checks on remote OStatus replies

parent 41062d38
......@@ -964,11 +964,19 @@ class Notice extends Memcached_DataObject
function saveKnownReplies($uris)
if (empty($uris)) {
$sender = Profile::staticGet($this->profile_id);
foreach ($uris as $uri) {
$user = User::staticGet('uri', $uri);
if (!empty($user)) {
if ($user->hasBlocked($sender)) {
$reply = new Reply();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment