mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42: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(', ');
|
||
|
});
|