this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

oh maybe this

+2 -2
+2 -2
database.go
··· 182 182 } 183 183 184 184 func getSubscribingPostParentURI(db *sql.DB, userDID, rkey string) (string, error) { 185 - sql := "SELECT parentURI FROM subscriptions WHERE subscriptionRkey = ? AND userDID = ?;" 185 + sql := "SELECT id, parentURI FROM subscriptions WHERE subscriptionRkey = ? AND userDID = ?;" 186 186 rows, err := db.Query(sql, rkey, userDID) 187 187 if err != nil { 188 188 return "", fmt.Errorf("run query to get subscribing post parent URI: %w", err) ··· 192 192 parentURI := "" 193 193 for rows.Next() { 194 194 var subscription subscription 195 - if err := rows.Scan(&subscription.ParentURI); err != nil { 195 + if err := rows.Scan(&subscription.ID, &subscription.ParentURI); err != nil { 196 196 return "", fmt.Errorf("scan row: %w", err) 197 197 } 198 198 parentURI = subscription.ParentURI