1
0
Fork 0

Merge remote-tracking branch 'upstream/develop' into dfrn-reshare

This commit is contained in:
Michael 2018-04-19 05:44:06 +00:00
commit da06416426
4 changed files with 271 additions and 266 deletions

View file

@ -1482,6 +1482,11 @@ class Contact extends BaseObject
}
// send email notification to owner?
} else {
if (dba::exists('contact', ['nurl' => normalise_link($url), 'uid' => $importer['uid'], 'pending' => true])) {
logger('ignoring duplicated connection request from pending contact ' . $url);
return;
}
// create contact record
q("INSERT INTO `contact` (`uid`, `created`, `url`, `nurl`, `name`, `nick`, `photo`, `network`, `rel`,
`blocked`, `readonly`, `pending`, `writable`)

View file

@ -1421,7 +1421,7 @@ class PortableContact
// Avoid duplicates
$tags = [];
foreach ($data->tags as $tag) {
$tag = strtolower($tag);
$tag = mb_strtolower($tag);
$tags[$tag] = $tag;
}