diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-29 16:56:50 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-29 16:56:50 -0700 |
commit | 8f7b869c080d26861f3ab65d3fca2e7f249c8304 (patch) | |
tree | 8ab7ac5a57d41cc718266fdb6e993330eae9a9fd /include | |
parent | c5294f994e5a0f52588eb03186e78ede75cb4b42 (diff) | |
parent | 34f52e47eb0ffb6b3a19cdf43bf988063b00f986 (diff) | |
download | volse-hubzilla-8f7b869c080d26861f3ab65d3fca2e7f249c8304.tar.gz volse-hubzilla-8f7b869c080d26861f3ab65d3fca2e7f249c8304.tar.bz2 volse-hubzilla-8f7b869c080d26861f3ab65d3fca2e7f249c8304.zip |
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 7793d1fb2..e7cc02579 100755 --- a/include/items.php +++ b/include/items.php @@ -3522,11 +3522,17 @@ function mail_store($arr) { dbesc($arr['mid']), intval($arr['channel_id']) ); + if($r) { logger('mail_store: duplicate item ignored. ' . print_r($arr,true)); return 0; } + if(! $r && $arr['mail_recalled'] == 1) { + logger('mail_store: recalled item not found. ' . print_r($arr,true)); + return 0; + } + call_hooks('post_mail',$arr); if(x($arr,'cancel')) { |