empty channel

This commit is contained in:
zotlabs 2019-11-26 21:29:48 -08:00
parent 44bb8410db
commit ecfcb61b09
3 changed files with 8 additions and 4 deletions

View file

@ -2088,7 +2088,6 @@ class Activity {
static function store($channel,$observer_hash,$act,$item,$fetch_parents = true) {
$is_sys_channel = is_sys_channel($channel['channel_id']);
$is_child_node = false;
@ -2417,6 +2416,7 @@ class Activity {
static function bb_attach($attach,$body) {
$ret = false;
foreach ($attach as $a) {

View file

@ -33,7 +33,11 @@ class Inbox extends Controller {
$is_public = true;
}
else {
$channels = [ channelx_by_nick(argv(1)) ];
$c = channelx_by_nick(argv(1));
if (! $c) {
http_status_exit(404,'Not found');
}
$channels = [ $c ];
}
$data = file_get_contents('php://input');
@ -87,7 +91,7 @@ class Inbox extends Controller {
$m = parse_url($observer_hash);
if ($m && $m['scheme'] && $m['host']) {
if (! check_siteallowed($m['scheme'] . '://' . $m['host'])) {
http_status_exit(404,'Permission denied');
http_status_exit(403,'Permission denied');
}
}

View file

@ -48,7 +48,7 @@ require_once('include/items.php');
define ( 'STD_VERSION', '19.11.19' );
define ( 'STD_VERSION', '19.11.27' );
define ( 'ZOT_REVISION', '6.0' );
define ( 'DB_UPDATE_VERSION', 1236 );