From 68d7a3ae0153d59813e7a62bc0b846dc16929076 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 Aug 2012 17:14:29 -0700 Subject: [PATCH] put a variant of the parent_uri into email notification message-ids. Current message-ids aren't completel legal. More work to do. --- include/diaspora.php | 2 +- include/enotify.php | 6 ++++-- include/items.php | 9 ++++++--- mod/item.php | 1 + 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index 3e9f20a471..baee0420ba 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1350,7 +1350,7 @@ function diaspora_comment($importer,$xml,$msg) { 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $conv_parent, - + 'parent_uri' => $parent_uri )); // only send one notification diff --git a/include/enotify.php b/include/enotify.php index 07e091d3a9..b4331f0926 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -1,5 +1,7 @@ ACTIVITY_POST, 'otype' => 'item', 'parent' => $parent, - + 'parent_uri' => $parent_uri, )); } @@ -2972,6 +2974,7 @@ function local_delivery($importer,$data) { 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $conv_parent, + 'parent_uri' => $parent_uri )); diff --git a/mod/item.php b/mod/item.php index c7b755eaed..6c1c06f99a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -748,6 +748,7 @@ function item_post(&$a) { 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $parent, + 'parent_uri' => $parent_item['uri'] )); }