correct off by 1

This commit is contained in:
Sam 2016-11-25 13:18:56 +11:00
parent 881eb373c5
commit ed16589b12
1 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,9 @@ export default createWidget('topic-timeline', {
return;
}
stream.excerpt(pos).then(info => {
// we have an off by one, stream is zero based,
// pos is 1 based
stream.excerpt(pos-1).then(info => {
if (info && this.state.position === pos) {
let excerpt = "";