Commit 3117c380 authored by Evan Prodromou's avatar Evan Prodromou

Revert "when silencing, blow scope for not-logged-in users"

This reverts commit 04f71a42.
parent 25f1e169
......@@ -1139,20 +1139,11 @@ class Profile extends Managed_DataObject
function silence()
{
$this->grantRole(Profile_role::SILENCED);
$this->blowRecentNoticeScope();
}
function unsilence()
{
$this->revokeRole(Profile_role::SILENCED);
$this->blowRecentNoticeScope();
}
function blowRecentNoticeScope() {
$notice = $this->getNotices(0, CachingNoticeStream::CACHE_WINDOW);
while ($notice->fetch()) {
self::blow(sprintf('notice:in-scope-for:%d:null', $notice->id));
}
}
/**
......
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