Calculations/Evaluations are not part of the lightweight template engine NodeBB uses. (AFAIK)
I guess the best would be to intercept the filter:post.getPosts hook and add your custom index values...
I have found only 2 actions for topic view:
action:topic.loading
action:posts.loaded
Problem is payload inconsistency. Only posts.loaded
, provides information about posts, topic.loading/topic.loaded
doesn't provide posts data. As a result, when user visits topic, there is no data about posts for client plugin.
Sending all of the data for all of the (possibly hundreds) of posts would be expensive and intensive.
If you want the post data for a specific topic, they're just an api command away.
@pitaj said:
If you want the post data for a specific topic, they're just an api command away.
Would surely help to know which one.
@pitaj
Boy, that was quick! Thanks