mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
8 lines
No EOL
309 B
JavaScript
8 lines
No EOL
309 B
JavaScript
Template.post_avatars.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);
|
|
}
|
|
}); |