diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-08 12:01:36 +0200 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-08 12:01:36 +0200 |
commit | 6f9fd92c2eabd1b26182e2f7157f35e44f94dc67 (patch) | |
tree | e937348598ae50a270faa5e2c850970e42e169be /mod/item.php | |
parent | 9ef5cb1c385e598d16ea78fef7f4207603ea4e79 (diff) | |
parent | a10abd4860ee2e34b197fd7c1bba295cd35c1a9b (diff) | |
download | volse-hubzilla-6f9fd92c2eabd1b26182e2f7157f35e44f94dc67.tar.gz volse-hubzilla-6f9fd92c2eabd1b26182e2f7157f35e44f94dc67.tar.bz2 volse-hubzilla-6f9fd92c2eabd1b26182e2f7157f35e44f94dc67.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php index 2c8cf256c..d7c15ff02 100644 --- a/mod/item.php +++ b/mod/item.php @@ -772,6 +772,17 @@ function item_content(&$a) { // ignore the result } + // If item is a link to an event, nuke the event record. + + if(intval($item['event-id'])) { + q("DELETE FROM `event` WHERE `id` = %d AND `uid` = %d LIMIT 1", + intval($item['event-id']), + intval($item['uid']) + ); + // ignore the result + } + + // If it's the parent of a comment thread, kill all the kids if($item['uri'] == $item['parent-uri']) { |