forked from friendica/friendica-addons
app.net, pump.io, statusnet, twitter: There were situations, when contacts were added by mistake.
This commit is contained in:
parent
b81129f070
commit
0a6d1f9e49
5 changed files with 21 additions and 0 deletions
|
@ -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)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue