diff --git a/pkg/timeline/postgres.go b/pkg/timeline/postgres.go index 4a2eb9b..a202b40 100644 --- a/pkg/timeline/postgres.go +++ b/pkg/timeline/postgres.go @@ -207,7 +207,7 @@ func (p *postgresStream) AddItem(item microsub.Item) (bool, error) { result, err := conn.ExecContext(context.Background(), ` INSERT INTO "items" ("channel_id", "uid", "data", "published_at", "created_at") VALUES ($1, $2, $3, $4, DEFAULT) -ON CONFLICT ON CONSTRAINT "items_uid_key" DO UPDATE SET "updated_at" = now() +ON CONFLICT ON CONSTRAINT "items_uid_key" DO NOTHING `, p.channelID, item.ID, &item, t) if err != nil { return false, fmt.Errorf("while adding item: %w", err)