From f6403049f6a59bf11edcb07495f1c12bb8dd9683 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Fri, 6 May 2016 16:08:59 +0200 Subject: [PATCH] revert because of wrong description --- frio_hovercard.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frio_hovercard.php b/frio_hovercard.php index ef1175ae5..9ddb4ce33 100644 --- a/frio_hovercard.php +++ b/frio_hovercard.php @@ -75,7 +75,6 @@ function frio_hovercard_content() { 'addr' => (($contact["addr"] != "") ? $contact["addr"] : $contact["url"]), 'thumb' => proxy_url($contact["photo"], false, PROXY_SIZE_THUMB), 'url' => ($cid ? ("redir/".$cid) : zrl($contact["url"])), - 'nurl' => $contact["nurl"], // We additionaly strore the nurl as identifier // 'alias' => $contact["alias"], 'location' => $contact["location"], 'gender' => $contact["gender"], @@ -127,3 +126,15 @@ function get_template_content($template, $root = "") { return false; } + + +function save_this_query() { + $contacts = q("SELECT * FROM `gcontact` + WHERE ((NOT `gcontact`.`hide` AND `gcontact`.`network` IN ('%s', '%s', '%s') AND + ((`gcontact`.`last_contact` >= `gcontact`.`last_failure`) OR (`gcontact`.`updated` >= `gcontact`.`last_failure`)))) AND + (`gcontact`.`addr` = '%s' OR `gcontact`.`nurl` = '%s') + LIMIT 1", + dbesc(NETWORK_DFRN), dbesc($ostatus), dbesc($diaspora), + dbesc(escape_tags($url)) + ); +}