rename 'uri' (and parent_uri) to 'mid' (and parent_mid) since these no longer remotely resemble uri's and are actually message_id's. This change is potentially destabilising because it touches a lot of code and structure. But it has to get done and there's no better time than the present.
This commit is contained in:
@@ -260,8 +260,8 @@ function event_store($arr) {
|
||||
|
||||
$hash = random_string();
|
||||
|
||||
if(! $arr['uri'])
|
||||
$arr['uri'] = item_message_id();
|
||||
if(! $arr['mid'])
|
||||
$arr['mid'] = item_message_id();
|
||||
|
||||
|
||||
$r = q("INSERT INTO event ( uid,aid,event_xchan,event_hash,created,edited,start,finish,summary, `desc`,location,type,
|
||||
@@ -314,8 +314,8 @@ function event_store($arr) {
|
||||
|
||||
$item_arr['uid'] = $arr['uid'];
|
||||
$item_arr['author_xchan'] = $arr['event_xchan'];
|
||||
$item_arr['uri'] = $arr['uri'];
|
||||
$item_arr['parent_uri'] = $arr['uri'];
|
||||
$item_arr['mid'] = $arr['mid'];
|
||||
$item_arr['parent_mid'] = $arr['mid'];
|
||||
|
||||
$item_arr['item_flags'] = $item_flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user