chore: adjust timing

This commit is contained in:
xuu
2025-03-29 19:48:06 -06:00
parent dab5a115cf
commit 07aba6d14a
3 changed files with 18 additions and 18 deletions
+8 -8
View File
@@ -95,12 +95,12 @@ var (
}
return `
insert into twts (
feed_id,
ulid,
text,
hash,
conv,
mentions,
feed_id,
ulid,
text,
hash,
conv,
mentions,
tags
)
values (?, ?, ?, ?, ?, ?, ?)` + repeat + `
@@ -243,7 +243,7 @@ func storeFeed(ctx context.Context, db db, f types.TwtFile) error {
continue
}
nick = strings.TrimSpace(nick)
uri = "http" + strings.TrimSpace(uri)
uri = strings.TrimSpace(uri)
if _, err := url.Parse(uri); err != nil {
continue
@@ -285,8 +285,8 @@ func storeFeed(ctx context.Context, db db, f types.TwtFile) error {
feedID, // feed_id
twtID, // ulid
fmt.Sprintf("%+l", twt), // text
subjectTag, // conv
twt.Hash(), // hash
subjectTag, // conv
mentions.ToStrList(), // mentions
tags, // tags
)