this repo has no description
0
fork

Configure Feed

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

remove unique constraint for rkey

+2 -2
+2 -2
database.go
··· 82 82 "parentURI" TEXT, 83 83 "userDID" TEXT, 84 84 "subscriptionRkey" TEXT, 85 - UNIQUE(parentURI, userDID, subscriptionRkey) 85 + UNIQUE(parentURI, userDID) 86 86 );` 87 87 88 88 slog.Info("Create subscriptions table...") ··· 172 172 } 173 173 174 174 func addSubscriptionForParent(db *sql.DB, parentURI, userDid, subscriptionRkey string) error { 175 - sql := `INSERT INTO subscriptions (parentURI, userDID, subscriptionRkey) VALUES (?, ?, ?) ON CONFLICT(parentURI, userDID, subscriptionRkey) DO NOTHING;` 175 + sql := `INSERT INTO subscriptions (parentURI, userDID, subscriptionRkey) VALUES (?, ?, ?) ON CONFLICT(parentURI, userDID) DO NOTHING;` 176 176 _, err := db.Exec(sql, parentURI, userDid, subscriptionRkey) 177 177 if err != nil { 178 178 return fmt.Errorf("exec insert subscrptions: %w", err)