fix lack of skip in disqus export
This commit is contained in:
@@ -33,7 +33,7 @@ func TestDisqus_Import(t *testing.T) {
|
||||
assert.Equal(t, "disqus_google-74b9e7568ef6860e93862c5d77590123", c.User.ID)
|
||||
assert.Equal(t, "89.89.89.139", c.User.IP)
|
||||
|
||||
posts, err := dataStore.List("test", 0)
|
||||
posts, err := dataStore.List("test", 0, 0)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, 2, len(posts), "2 posts")
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ type Accessor interface {
|
||||
Last(siteID string, max int) ([]Comment, error) // last comments for given site, sorted by time
|
||||
User(siteID string, userID string) ([]Comment, int, error) // comments by user, sorted by time
|
||||
Count(locator Locator) (int, error) // number of comments for the post
|
||||
List(siteID string, limit int, skip int) ([]PostInfo, error) // list of commented posts
|
||||
List(siteID string, limit int, skip int) ([]PostInfo, error) // list of commented posts
|
||||
}
|
||||
|
||||
// Admin defines all store ops avail for admin only
|
||||
|
||||
Reference in New Issue
Block a user