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

Commit 8333ac33 authored by Evan Prodromou's avatar Evan Prodromou

if user has private stream flag, set that scope

parent 5afa5033
......@@ -420,6 +420,18 @@ class Notice extends Memcached_DataObject
$notice->scope = $scope;
// For private streams
$user = $profile->getUser();
if (!empty($user)) {
if ($user->private_stream &&
($notice->scope == Notice::PUBLIC_SCOPE ||
$notice->scope == Notice::SITE_SCOPE)) {
$notice->scope |= Notice::FOLLOWER_SCOPE;
if (Event::handle('StartNoticeSave', array(&$notice))) {
// XXX: some of these functions write to the DB
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