forked from GNUsocial/gnu-social
Hide posts from users with private_stream in scoping streams
For example the public timeline would show notices from a user with private_stream configured. (previously it would only hide _new_ notices by this user as they would be the only ones with notice scoping set).
This commit is contained in:
@@ -1572,6 +1572,15 @@ class Profile extends Managed_DataObject
|
||||
return $this->getUser()->shortenLinks($text, $always);
|
||||
}
|
||||
|
||||
public function isPrivateStream()
|
||||
{
|
||||
// We only know of public remote users as of yet...
|
||||
if (!$this->isLocal()) {
|
||||
return false;
|
||||
}
|
||||
return $this->getUser()->private_stream ? true : false;
|
||||
}
|
||||
|
||||
public function delPref($namespace, $topic) {
|
||||
return Profile_prefs::setData($this, $namespace, $topic, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user