app.net, pump.io, statusnet, twitter: There were situations, when contacts were added by mistake.

This commit is contained in:
Michael Vogel 2014-06-25 01:20:04 +02:00
commit 0a6d1f9e49
5 changed files with 21 additions and 0 deletions

View file

@ -888,6 +888,9 @@ function pumpio_dolike(&$a, $uid, $self, $post, $own_id) {
function pumpio_get_contact($uid, $contact) {
if (($contact->url == "") OR ($contact->id == 0))
return(false);
$r = q("SELECT id FROM unique_contacts WHERE url='%s' LIMIT 1",
dbesc(normalise_link($contact->url)));