mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:10:10 +00:00
Compatibility with pleroma added
This commit is contained in:
parent
c9daecb80d
commit
51dca9b034
3 changed files with 16 additions and 1 deletions
|
@ -108,6 +108,14 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
|
|||
if ($value != "") {
|
||||
$author["author-about"] = $value;
|
||||
}
|
||||
$avatar = $xpath->evaluate("atom:author/atom:link[@rel='avatar']")->item(0)->attributes;
|
||||
if (is_object($avatar)) {
|
||||
foreach ($avatar AS $attributes) {
|
||||
if ($attributes->name == "href") {
|
||||
$author["author-avatar"] = $attributes->textContent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$author["edited"] = $author["created"] = $xpath->query('/atom:feed/atom:updated/text()')->item(0)->nodeValue;
|
||||
|
|
|
@ -101,7 +101,7 @@ class ostatus {
|
|||
$width = $attributes->textContent;
|
||||
}
|
||||
}
|
||||
if (($width > 0) && ($href != "")) {
|
||||
if ($href != "") {
|
||||
$avatarlist[$width] = $href;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue