fixed following filter
This commit is contained in:
parent
5eb2a25591
commit
2bb1c9725d
2 changed files with 3 additions and 12 deletions
|
@ -253,13 +253,11 @@ backend.postBulk = async ({page, id, user, cookies, sort, type}) => {
|
|||
ROW_COUNT
|
||||
])
|
||||
} else if (type == 'follow') {
|
||||
posts = await db.all('SELECT * from post WHERE username IN (SELECT username from follow WHERE username = ?) ORDER BY '+sort+' DESC LIMIT ?, ?', [
|
||||
posts = await db.all('SELECT * from post WHERE username IN (SELECT following from follow WHERE username = ?) ORDER BY '+sort+' DESC LIMIT ?, ?', [
|
||||
userAuth,
|
||||
page*ROW_COUNT,
|
||||
ROW_COUNT
|
||||
])
|
||||
|
||||
console.log(posts);
|
||||
}
|
||||
|
||||
posts = posts.map(post => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue