mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Improved description, support for "unlisted" via DFRN as well.
This commit is contained in:
parent
dc9ea15bb1
commit
a19151fa6a
2 changed files with 7 additions and 1 deletions
|
@ -1052,6 +1052,7 @@ class DFRN
|
|||
if ($item['private']) {
|
||||
// Friendica versions prior to 2020.3 can't handle "unlisted" properly. So we can only transmit public and private
|
||||
XML::addElement($doc, $entry, "dfrn:private", ($item['private'] == Item::PRIVATE ? Item::PRIVATE : Item::PUBLIC));
|
||||
XML::addElement($doc, $entry, "dfrn:unlisted", $item['private'] == Item::UNLISTED);
|
||||
}
|
||||
|
||||
if ($item['extid']) {
|
||||
|
@ -2405,6 +2406,11 @@ class DFRN
|
|||
|
||||
$item["private"] = XML::getFirstNodeValue($xpath, "dfrn:private/text()", $entry);
|
||||
|
||||
$unlisted = XML::getFirstNodeValue($xpath, "dfrn:unlisted/text()", $entry);
|
||||
if (!empty($unlisted) && ($item['private'] != Item::PRIVATE)) {
|
||||
$item['private'] = Item::UNLISTED;
|
||||
}
|
||||
|
||||
$item["extid"] = XML::getFirstNodeValue($xpath, "dfrn:extid/text()", $entry);
|
||||
|
||||
if (XML::getFirstNodeValue($xpath, "dfrn:bookmark/text()", $entry) == "true") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue