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

Commit 71c828de authored by Brion Vibber's avatar Brion Vibber

Allow blocking someone who's not currently subscribed to you (prevents seeing...

Allow blocking someone who's not currently subscribed to you (prevents seeing @-replies from them, or them subbing to you in future)
parent 5d96cf2e
......@@ -548,7 +548,10 @@ class User extends Memcached_DataObject
return false;
}
Subscription::cancel($other, $this->getProfile());
$self = $this->getProfile();
if (Subscription::exists($other, $self)) {
Subscription::cancel($other, $self);
}
$block->query('COMMIT');
......
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