feed with followers only

This commit is contained in:
Adolfo Reyna
2021-09-02 12:02:09 -07:00
parent fa0d6ee199
commit 9a302a87de
4 changed files with 70 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ DB.getDB.then((DB)=>{
}
router.get("/", async (req, res) => {
let posts = await DB.getPosts();
const profileid = getProfileId(req);
let posts = await DB.getFeed(profileid);
return res.json(posts)
});