PERF: Do not calculate gaps for TopicViewPostsSerializer.

The client doesn't use the gaps results when loading new posts.
This commit is contained in:
Guo Xiang Tan
2018-07-02 13:58:02 +08:00
parent 3ddfc12307
commit 969e79d7c6
3 changed files with 14 additions and 1 deletions

View File

@@ -22,5 +22,6 @@ RSpec.describe TopicViewPostsSerializer do
expect(posts.first["id"]).to eq(post.id)
expect(body["post_stream"]["stream"]).to eq(nil)
expect(body["post_stream"]["timeline_lookup"]).to eq(nil)
expect(body["post_stream"]["gaps"]).to eq(nil)
end
end