mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
6 lines
208 B
JavaScript
6 lines
208 B
JavaScript
|
import {helper} from '@ember/component/helper';
|
||
|
|
||
|
export default helper(function postAuthorNames([post]/*, hash*/) {
|
||
|
return (post?.authors || []).map(author => author.name || author.email).join(', ');
|
||
|
});
|