aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorMichael <icarus@dabo.de>2012-02-25 01:10:45 +0100
committerMichael <icarus@dabo.de>2012-02-25 01:10:45 +0100
commita74b0746b1e39d86aca4f665cfded03e6b344240 (patch)
treeb1da5791878ce39e06dfb0e3e2f2e5d0436b32f1 /include/poller.php
parent0ba45eb74543fc6377c48ac17d8b632e431e9467 (diff)
downloadvolse-hubzilla-a74b0746b1e39d86aca4f665cfded03e6b344240.tar.gz
volse-hubzilla-a74b0746b1e39d86aca4f665cfded03e6b344240.tar.bz2
volse-hubzilla-a74b0746b1e39d86aca4f665cfded03e6b344240.zip
multipart messages complete, message-id conversion done.
Diffstat (limited to 'include/poller.php')
-rwxr-xr-xinclude/poller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index ad15ec244..9cf12ed9c 100755
--- a/include/poller.php
+++ b/include/poller.php
@@ -420,13 +420,13 @@ function poller_run($argv, $argc){
// look for a 'references' header and try and match with a parent item we have locally.
$raw_refs = ((x($headers,'references')) ? str_replace("\t",'',$headers['references']) : '');
- $datarray['uri'] = trim($meta->message_id,'<>');
+ $datarray['uri'] = msgid2iri(trim($meta->message_id,'<>'));
if($raw_refs) {
$refs_arr = explode(' ', $raw_refs);
if(count($refs_arr)) {
for($x = 0; $x < count($refs_arr); $x ++)
- $refs_arr[$x] = "'" . str_replace(array('<','>',' '),array('','',''),dbesc($refs_arr[$x])) . "'";
+ $refs_arr[$x] = "'" . msgid2iri(str_replace(array('<','>',' '),array('','',''),dbesc($refs_arr[$x]))) . "'";
}
$qstr = implode(',',$refs_arr);
$r = q("SELECT `uri` , `parent-uri` FROM `item` WHERE `uri` IN ( $qstr ) AND `uid` = %d LIMIT 1",