- $ostatus_contact = $contact;
-
- // If the contact doesn't fit with the contact, then fetch the correct contact
- // This is more a test than a good solution. The whole OStatus stuff needs a rework.
- if ($followup) {
- $thrparent = q("SELECT `author-link` FROM `item` WHERE `uri` = '%s'", dbesc($target_item["thr-parent"]));
- if (count($thrparent) AND (normalise_link($contact["url"]) != normalise_link($thrparent[0]["author-link"]))) {
- require_once("include/Scrape.php");
- $probed_contact = probe_url($thrparent[0]["author-link"]);
- if ($probed_contact["network"] != NETWORK_FEED) {
- $ostatus_contact = $probed_contact;
- $ostatus_contact["nurl"] = normalise_link($probed_contact["url"]);
- $ostatus_contact["thumb"] = $probed_contact["photo"];
- $ostatus_contact["micro"] = $probed_contact["photo"];
- }
- logger('scrape data for slapper: '.print_r($ostatus_contact, true));
- }
- }
-
- if($followup && $ostatus_contact['notify']) {
-
- logger('notifier: slapdelivery: ' . $ostatus_contact['name']);
- $deliver_status = slapper($owner,$ostatus_contact['notify'],$slap);
+ if($followup && $contact['notify']) {
+ logger('notifier: slapdelivery: ' . $contact['name']);
+ $deliver_status = slapper($owner,$contact['notify'],$slap);