We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b4f19 commit 36e5a27Copy full SHA for 36e5a27
controlers/rss.js
@@ -72,7 +72,7 @@ ctrl.rss = async (ctx, next) => {
72
}
73
];
74
if (count < page * limit) kbs.pop();
75
-
+ if (page === 1) kbs.shift();
76
const feeds = await RSS.getSubscribedFeedsByUserId(userId, limit, page);
77
if (feeds.length === 0) {
78
throw new Error('NOT_SUB');
@@ -126,9 +126,8 @@ ctrl.viewAll = async (ctx, next) => {
126
callback_data: 'VIEWALL_' + (page + 1)
127
128
129
- if (count < page * limit) {
130
- kbs.pop();
131
- }
+ if (count < page * limit) kbs.pop();
132
const feeds = await RSS.getAllFeedsWithCount(limit, page);
133
134
0 commit comments