Allow blocking someone who's not currently subscribed to you (prevents seeing @-replies from them, or them subbing to you in future)
This commit is contained in:
parent
5d96cf2eec
commit
71c828de89
@ -548,7 +548,10 @@ class User extends Memcached_DataObject
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Subscription::cancel($other, $this->getProfile());
|
$self = $this->getProfile();
|
||||||
|
if (Subscription::exists($other, $self)) {
|
||||||
|
Subscription::cancel($other, $self);
|
||||||
|
}
|
||||||
|
|
||||||
$block->query('COMMIT');
|
$block->query('COMMIT');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user