Merge pull request #8811 from MrPetovan/task/8517-probe-mobile-twitter

Add support for mobile profile URL to core twitter probing
This commit is contained in:
Michael Vogel 2020-06-27 17:32:19 +02:00 committed by GitHub
commit c852e1479c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 21 additions and 26 deletions

View file

@ -1829,11 +1829,12 @@ class OStatus
$item["private"] = Item::PRIVATE;
$contact = Probe::uri($item['follow']);
$item['follow'] = $contact['url'];
if ($contact['alias'] == '') {
$contact['alias'] = $contact["url"];
} else {
if ($contact['alias']) {
$item['follow'] = $contact['alias'];
} else {
$contact['alias'] = $contact['url'];
}
$condition = ['uid' => $owner['uid'], 'nurl' => Strings::normaliseLink($contact["url"])];