mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
make superblock block a channel if it's an owner as well as the current author; add @hostname to event hashes to make their use in vcalendar more RFC compliant
This commit is contained in:
parent
52ccbd6b64
commit
03756c65fc
3 changed files with 3 additions and 3 deletions
|
@ -597,7 +597,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
|
|||
if($arr_blocked) {
|
||||
$blocked = false;
|
||||
foreach($arr_blocked as $b) {
|
||||
if(($b) && ($item['author_xchan'] == $b)) {
|
||||
if(($b) && (($item['author_xchan'] == $b) || ($item['owner_xchan'] == $b))) {
|
||||
$blocked = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -281,7 +281,7 @@ function event_store_event($arr) {
|
|||
if(array_key_exists('external_id',$arr))
|
||||
$hash = $arr['external_id'];
|
||||
else
|
||||
$hash = random_string();
|
||||
$hash = random_string() . '@' . get_app()->get_hostname();
|
||||
|
||||
$r = q("INSERT INTO event ( uid,aid,event_xchan,event_hash,created,edited,start,finish,summary,description,location,type,
|
||||
adjust,nofinish,allow_cid,allow_gid,deny_cid,deny_gid)
|
||||
|
|
|
@ -1 +1 @@
|
|||
2015-07-27.1106
|
||||
2015-07-28.1107
|
||||
|
|
Loading…
Reference in a new issue