Merge pull request #13647 from MrPetovan/bug/10369-rss-group-ns

Add expected xmlns attribute to group feed entries
This commit is contained in:
Michael Vogel 2023-11-16 15:48:59 +01:00 committed by GitHub
commit 2db2f280d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1470,6 +1470,8 @@ class OStatus
$entry = $doc->createElement('entry');
if ($owner['contact-type'] == Contact::TYPE_COMMUNITY) {
$entry->setAttribute('xmlns:activity', ActivityNamespace::ACTIVITY);
$contact = Contact::getByURL($item['author-link']) ?: $owner;
$contact['nickname'] = $contact['nickname'] ?? $contact['nick'];
$author = self::addAuthor($doc, $contact, false);