]> git.mxchange.org Git - friendica.git/blobdiff - include/delivery.php
parse_url: recognize image/video/audio files + move functions into own class
[friendica.git] / include / delivery.php
index 7c0ba63a6b41b9649cf30e925df64cf089e6ccd8..8fce98774250cdaeeaccda7bd841671cbda1a7ed 100644 (file)
@@ -381,7 +381,14 @@ function delivery_run(&$argv, &$argc){
                                if ($deliver_status == (-1)) {
                                        logger('notifier: delivery failed: queuing message');
                                        add_to_queue($contact['id'],NETWORK_DFRN,$atom);
+
+                                       // The message could not be delivered. We mark the contact as "dead"
+                                       mark_for_death($contact);
+                               } else {
+                                       // We successfully delivered a message, the contact is alive
+                                       unmark_for_death($contact);
                                }
+
                                break;
 
                        case NETWORK_OSTATUS: