Solved some todo(s)

This commit is contained in:
Marco Realacci 2022-11-22 22:47:17 +01:00
parent 05acfb045f
commit a3cf4f17f8
5 changed files with 27 additions and 30 deletions

View file

@ -5,10 +5,9 @@ import (
)
// Get user stream
// todo implement stidx + offset
func (db *appdbimpl) GetUserStream(uid string, start_index int, limit int) (*[]structures.Photo, error) {
// Get photos
// Get photos from the database
rows, err := db.c.Query(`SELECT "p"."user", "p"."id", "p"."date",
(
SELECT COUNT(*) AS "likes" FROM "likes" AS "l"