mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
Compatibility with pleroma added
This commit is contained in:
parent
c9daecb80d
commit
51dca9b034
3 changed files with 16 additions and 1 deletions
|
@ -1201,6 +1201,7 @@ class Probe {
|
|||
if (!$feed_data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($feed_data["header"]["author-name"] != "") {
|
||||
$data["name"] = $feed_data["header"]["author-name"];
|
||||
}
|
||||
|
@ -1224,6 +1225,12 @@ class Probe {
|
|||
if ($feed_data["header"]["author-link"] != "") {
|
||||
$data["url"] = $feed_data["header"]["author-link"];
|
||||
}
|
||||
|
||||
if (($data['poll'] == $data['url']) && ($data["alias"] != '')) {
|
||||
$data['url'] = $data["alias"];
|
||||
$data["alias"] = '';
|
||||
}
|
||||
|
||||
/// @todo Fetch location and "about" from the feed as well
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue