~aleteoryx/tclfeed-bsky

51c2b9dcad80bc80a95eba20014cb4c8da61de7f — Aleteoryx 30 days ago 0ad9282
fix sql
1 files changed, 1 insertions(+), 1 deletions(-)

M jetstream.tcl
M jetstream.tcl => jetstream.tcl +1 -1
@@ 29,7 29,7 @@ namespace eval ::jetstream {
              set text [dict get $data commit record text]
              if [regexp -nocase -- {\stcl(/tk)?(,|\s)|^tcl(/tk)?(,|\s)|\stcl(/tk)?$|\stk(,|\s)|^tk(,|\s)|\stk$|\.tcl|tclsh} $text] {
                set ts [dict get $data commit record createdAt]
                if ![catch {$db eval {INSERT INTO posts (uri, ts) VALUES ($uri, $ts) ON CONFLICT FAIL;}}] {
                if ![catch {$db eval {INSERT OR FAIL INTO posts (uri, ts) VALUES ($uri, $ts);}}] {
                  ${log}::info "new tclpost! https://bsky.app/profile/[dict get $data did]/post/[dict get $data commit rkey]"
                }
              }