mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
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:
commit
c852e1479c
9 changed files with 21 additions and 26 deletions
|
@ -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"])];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue