mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +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(', ');
|
||
|
});
|