/main/all will give a network-wide public stream

Qvitter had implemented this as a "PublicAndExternal" stream, but
I figured we might as well put it into the GNU social core.
This commit is contained in:
Mikael Nordfeldth
2015-01-28 20:25:39 +01:00
parent eaaef2aec9
commit a5d27d9ce7
8 changed files with 169 additions and 52 deletions

View File

@@ -997,6 +997,7 @@ class Notice extends Managed_DataObject
if ($this->isPublic()) {
$this->blowStream('public');
$this->blowStream('networkpublic');
}
self::blow('notice:list-ids:conversation:%s', $this->conversation);
@@ -1041,6 +1042,7 @@ class Notice extends Managed_DataObject
if ($this->isPublic()) {
self::blow('public;last');
self::blow('networkpublic;last');
}
self::blow('fave:by_notice', $this->id);
@@ -2636,12 +2638,8 @@ class Notice extends Managed_DataObject
function isPublic()
{
if (common_config('public', 'localonly')) {
return ($this->is_local == Notice::LOCAL_PUBLIC);
} else {
return (($this->is_local != Notice::LOCAL_NONPUBLIC) &&
($this->is_local != Notice::GATEWAY));
}
return (($this->is_local != Notice::LOCAL_NONPUBLIC) &&
($this->is_local != Notice::GATEWAY));
}
/**