Skip to content

Commit

Permalink
MOB-963-Fix duplicate items in curations feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-ollivierre committed Jun 13, 2019
1 parent bb6e0aa commit 8895b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BVSDK/BVCurationsUI/BVCurationsUICollectionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ - (void)loadCurationsFeed:(NSUInteger)limit
req.limit = limit;
req.hasPhotoOrVideo = @YES;
if (_lastFetchedTimeStamp) {
req.before = _lastFetchedTimeStamp;
/*We decrement lastFetchedTimeStamp so that only items posted
before the given timestamp are fetched*/
req.before = [NSNumber numberWithInt:[_lastFetchedTimeStamp intValue] - 1];
}

if (_productId && 0 < _productId.length) {
Expand Down

0 comments on commit 8895b32

Please sign in to comment.