diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-27 16:01:51 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-27 16:01:51 -0700 |
commit | 3ecc9efd8d22caf3317876ff8d79cffa52f75513 (patch) | |
tree | ccbdf3f1c112d151ceee79b57689cf970630d1a2 /include/diaspora.php | |
parent | 3fdf1ac458303fa01aeb4c75cb579affb381de91 (diff) | |
download | volse-hubzilla-3ecc9efd8d22caf3317876ff8d79cffa52f75513.tar.gz volse-hubzilla-3ecc9efd8d22caf3317876ff8d79cffa52f75513.tar.bz2 volse-hubzilla-3ecc9efd8d22caf3317876ff8d79cffa52f75513.zip |
fix for forked thread on diaspora
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index b532822bf..25e0027b2 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2400,6 +2400,11 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) { $a = get_app(); $myaddr = $owner['channel_address'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3); + if(intval($item['id']) != intval($item['parent'])) { + logger('attempted to send a comment as a top-level post'); + return; + } + $images = array(); $title = $item['title']; |