mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 09:55:15 +00:00
there's still a permission issue delivering a public post directly to the sys channel (on the local system), but this puts the local sys channel in the public delivery chain and fixes an issue with unseen counts showing on the discover page (where you can't do anything about it).
This commit is contained in:
parent
efcbcd6f88
commit
4893e64c1e
3 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Item extends BaseObject {
|
|||
$indent = '';
|
||||
$osparkle = '';
|
||||
$total_children = $this->count_descendants();
|
||||
$unseen_comments = (($item->real_uid) ? 0 : $this->count_unseen_descendants());
|
||||
$unseen_comments = (($item['real_uid']) ? 0 : $this->count_unseen_descendants());
|
||||
|
||||
$conv = $this->get_conversation();
|
||||
$observer = $conv->get_observer();
|
||||
|
|
|
@ -1313,6 +1313,8 @@ function public_recips($msg) {
|
|||
|
||||
$r = array_merge($r,$x);
|
||||
|
||||
logger('message: ' . print_r($msg['message'],true));
|
||||
|
||||
if($include_sys && array_key_exists('public_scope',$msg['message']) && $msg['message']['public_scope'] === 'public') {
|
||||
$sys = get_sys_channel();
|
||||
if($sys)
|
||||
|
|
|
@ -1 +1 @@
|
|||
2014-11-18.863
|
||||
2014-11-19.864
|
||||
|
|
Loading…
Reference in a new issue