mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
empty channel
This commit is contained in:
parent
44bb8410db
commit
ecfcb61b09
3 changed files with 8 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
boot.php
2
boot.php
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue