mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Fix support for multiple authors and maintainers
This commit is contained in:
parent
a80bf0ddf1
commit
b0e3f1f64d
4 changed files with 55 additions and 35 deletions
|
@ -103,6 +103,14 @@ final class AddonProxy implements AddonHelper
|
|||
// add addon ID
|
||||
$data['id'] = $addonId;
|
||||
|
||||
// rename author to authors
|
||||
$data['authors'] = $data['author'];
|
||||
unset($data['author']);
|
||||
|
||||
// rename maintainer to maintainers
|
||||
$data['maintainers'] = $data['maintainer'];
|
||||
unset($data['maintainer']);
|
||||
|
||||
return AddonInfo::fromArray($data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue