Merge remote-tracking branch 'upstream/develop' into dfrn-reshare
This commit is contained in:
commit
da06416426
4 changed files with 271 additions and 266 deletions
|
@ -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`)
|
||||
|
|
|
@ -1421,7 +1421,7 @@ class PortableContact
|
|||
// Avoid duplicates
|
||||
$tags = [];
|
||||
foreach ($data->tags as $tag) {
|
||||
$tag = strtolower($tag);
|
||||
$tag = mb_strtolower($tag);
|
||||
$tags[$tag] = $tag;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue