force event obj_type on update
This commit is contained in:
parent
8c54ad4f3a
commit
3eeea9d8f0
@ -424,7 +424,7 @@ function event_store_item($arr, $event) {
|
|||||||
|
|
||||||
$private = (($arr['allow_cid'] || $arr['allow_gid'] || $arr['deny_cid'] || $arr['deny_gid']) ? 1 : 0);
|
$private = (($arr['allow_cid'] || $arr['allow_gid'] || $arr['deny_cid'] || $arr['deny_gid']) ? 1 : 0);
|
||||||
|
|
||||||
q("UPDATE item SET title = '%s', body = '%s', object = '%s', allow_cid = '%s', allow_gid = '%s', deny_cid = '%s', deny_gid = '%s', edited = '%s', item_flags = %d, item_private = %d WHERE id = %d AND uid = %d",
|
q("UPDATE item SET title = '%s', body = '%s', object = '%s', allow_cid = '%s', allow_gid = '%s', deny_cid = '%s', deny_gid = '%s', edited = '%s', item_flags = %d, item_private = %d, obj_type = '%s' WHERE id = %d AND uid = %d",
|
||||||
dbesc($arr['summary']),
|
dbesc($arr['summary']),
|
||||||
dbesc($prefix . format_event_bbcode($arr)),
|
dbesc($prefix . format_event_bbcode($arr)),
|
||||||
dbesc($object),
|
dbesc($object),
|
||||||
@ -435,6 +435,7 @@ function event_store_item($arr, $event) {
|
|||||||
dbesc($arr['edited']),
|
dbesc($arr['edited']),
|
||||||
intval($r[0]['item_flags']),
|
intval($r[0]['item_flags']),
|
||||||
intval($private),
|
intval($private),
|
||||||
|
dbesc(ACTIVITY_OBJ_EVENT),
|
||||||
intval($r[0]['id']),
|
intval($r[0]['id']),
|
||||||
intval($arr['uid'])
|
intval($arr['uid'])
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user