]> git.mxchange.org Git - friendica.git/commitdiff
better check for orig post author
authorFriendika <info@friendika.com>
Wed, 5 Oct 2011 20:11:45 +0000 (13:11 -0700)
committerFriendika <info@friendika.com>
Wed, 5 Oct 2011 20:11:45 +0000 (13:11 -0700)
boot.php
mod/dfrn_notify.php

index 65a1b8229d76eebc1c1142e490da7a905c59c1ad..c9603f78742f62c98d50286c40602afcf665006d 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -8,7 +8,7 @@ require_once("include/pgettext.php");
 require_once('include/nav.php');
 
 define ( 'FRIENDIKA_PLATFORM',     'Free Friendika');
-define ( 'FRIENDIKA_VERSION',      '2.3.1124' );
+define ( 'FRIENDIKA_VERSION',      '2.3.1125' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1094      );
 
index 9e980995060bc7f66397dc09954054a697779cbd..07de641604d6fb9304c44ae2244e4028d5395c3a 100644 (file)
@@ -453,7 +453,7 @@ function dfrn_notify_post(&$a) {
 
                        // was the top-level post for this reply written by somebody on this site? Specifically, the recipient? 
 
-                       $r = q("select `id` from `item` where `uri` = '%s' AND `uid` = %d LIMIT 1",
+                       $r = q("select `item`.`id` from `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` where `contact`.`self` = 1 AND `item`.`uri` = '%s' AND `item`.`uid` = %d LIMIT 1",
                                dbesc($parent_uri),
                                intval($importer['importer_uid'])
                        );