aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <redmatrix@redmatrix.me>2015-04-20 17:02:45 -0700
committerfriendica <redmatrix@redmatrix.me>2015-04-20 17:02:45 -0700
commit3eeea9d8f04064f26c7e31d590f7bf7ced140367 (patch)
tree3d0e24ac9d885424ce259c186ca10a9fb9f68917 /include
parent8c54ad4f3ad94c6477ec4aea3b481424b86aef95 (diff)
downloadvolse-hubzilla-3eeea9d8f04064f26c7e31d590f7bf7ced140367.tar.gz
volse-hubzilla-3eeea9d8f04064f26c7e31d590f7bf7ced140367.tar.bz2
volse-hubzilla-3eeea9d8f04064f26c7e31d590f7bf7ced140367.zip
force event obj_type on update
Diffstat (limited to 'include')
-rw-r--r--include/event.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/event.php b/include/event.php
index 05f01535c..5926b50f7 100644
--- a/include/event.php
+++ b/include/event.php
@@ -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);
- 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($prefix . format_event_bbcode($arr)),
dbesc($object),
@@ -435,6 +435,7 @@ function event_store_item($arr, $event) {
dbesc($arr['edited']),
intval($r[0]['item_flags']),
intval($private),
+ dbesc(ACTIVITY_OBJ_EVENT),
intval($r[0]['id']),
intval($arr['uid'])
);