mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
8 lines
No EOL
324 B
JavaScript
8 lines
No EOL
324 B
JavaScript
Template[getTemplate('postAvatars')].helpers({
|
|
commenters: function () {
|
|
// remove post author ID from commenters to avoid showing author's avatar again
|
|
// limit to 4 commenters in case there's more
|
|
// TODO: show a "..." sign or something
|
|
return _.first(_.without(this.commenters, this.userId), 4);
|
|
}
|
|
}); |