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