kim (grufwub)
381f8308c2
Merge branch 'bugfix/tx-within-tx' into feature/add-sqlite-support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 10:06:24 +01:00
kim (grufwub)
aef516e5e4
fix new tx within tx
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 10:04:59 +01:00
kim (grufwub)
8c5a906881
only use nullzero if string/timme.Time
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 09:50:02 +01:00
kim (grufwub)
b09f20c838
fix basicDB.Put() to properly process error
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 09:07:34 +01:00
kim (grufwub)
25af975343
Merge branch 'bugfix/status-mention-population' into feature/add-sqlite-support
2021-08-27 08:41:47 +01:00
kim (grufwub)
26887b31e8
fix ptr being incorrectly assigned to
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 08:39:30 +01:00
kim (grufwub)
5c9d9e1c54
slightly improved mentiondb err handling
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 07:40:13 +01:00
kim (grufwub)
57ccbb9e38
Fix possible issue on db.ErrNoEntries AND non-zero query count
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27 07:33:10 +01:00
kim (grufwub)
9d8faa490b
use more SQL-implementation agnostic query
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 23:13:33 +01:00
kim (grufwub)
850c564de1
remove unnecessary notnulls
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 21:46:24 +01:00
kim (grufwub)
718503eb08
fix returning nil error processing sqlite errors
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 21:27:18 +01:00
kim (grufwub)
b654a1235a
Merge remote-tracking branch 'upstream/main' into feature/add-sqlite-support
2021-08-26 21:07:42 +01:00
tobi
30f688dbe2
some more little fixes for all to enjoy ( #161 )
2021-08-26 22:06:34 +02:00
kim (grufwub)
4b26b1174e
Merge remote-tracking branch 'upstream/main' into feature/add-sqlite-support
2021-08-26 20:15:00 +01:00
kim (grufwub)
77a578528f
ensure ,notnull,nullzero on all columns with default values
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 20:11:15 +01:00
tobi
2162f21636
fix broken db queries in auth ( #160 )
2021-08-26 19:56:40 +02:00
kim (grufwub)
5809dedc8b
Merge remote-tracking branch 'upstream/main' into feature/add-sqlite-support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 17:57:35 +01:00
tobi
1582cf8bad
fix null returned session ( #159 )
2021-08-26 18:55:39 +02:00
kim (grufwub)
63412d565b
Merge remote-tracking branch 'upstream/main' into feature/add-sqlite-support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 16:53:33 +01:00
tobi
2eefaa0227
oops ( #157 )
2021-08-26 17:46:24 +02:00
kim (grufwub)
0bc538b737
remove unneeded nested sprintf within debugf
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 16:41:40 +01:00
tobi
14ebc94fd9
fix error with instance not created on startup ( #156 )
2021-08-26 17:22:41 +02:00
kim (grufwub)
1a828727c2
fix catching wrong error... add code comments
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 16:08:40 +01:00
kim (grufwub)
0000c2c4a5
wrap bun.DB in dbConn for dbconn specific error processing etc
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 15:11:48 +01:00
kim (grufwub)
fc561ef308
improve formatting of new licenses
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:58:07 +01:00
kim (grufwub)
5747af915e
return error instead of panic on sql.Open("sqlite")
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:55:02 +01:00
kim (grufwub)
4ed448662e
add licenses to README
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:54:26 +01:00
tobi
d39d93e852
update drone yml ( #153 )
2021-08-26 12:36:08 +02:00
kim (grufwub)
e9de6a2526
Merge branch 'main' into feature/add-sqlite-support
2021-08-26 11:30:53 +01:00
kim (grufwub)
3651516467
Update DB configuration to mention new sqlite options
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:27:59 +01:00
kim
03479312f1
Improved build script ( #152 )
...
- explicity disable cgo
- ensure static builds
- reduce binary size
- small formatting changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 12:19:52 +02:00
kim (grufwub)
cec939f2c2
add initial sqlite support, add modernc.org/sqlite to vendored libs
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:18:02 +01:00
kim (grufwub)
9e1673d35d
Improved build script
...
- explicity disable cgo
- ensure static builds
- reduce binary size
- small formatting changes
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26 11:02:36 +01:00
tobi
ddc120d5e6
fix public timeline bug ( #150 )
2021-08-26 11:28:16 +02:00
tobi
2dc9fc1626
Pg to bun ( #148 )
...
* start moving to bun
* changing more stuff
* more
* and yet more
* tests passing
* seems stable now
* more big changes
* small fix
* little fixes
2021-08-25 15:34:33 +02:00
tobi
071eca20ce
Manually approves followers ( #146 )
...
* update go-fed
* update go-fed
* manuallyapprovesfollowers
* serialize manuallyApprovesFollowers
2021-08-23 12:46:05 +02:00
tobi
4920229a3b
Database updates ( #144 )
...
* start moving some database stuff around
* continue moving db stuff around
* more fiddling
* more updates
* and some more
* and yet more
* i broke SOMETHING but what, it's a mystery
* tidy up
* vendor ttlcache
* use ttlcache
* fix up some tests
* rename some stuff
* little reminder
* some more updates
2021-08-20 12:26:56 +02:00
Tobi Smethurst
ce190d867c
Text/status parsing fixes ( #141 )
...
* aaaaaa
* vendor minify
* update + test markdown parsing
2021-08-16 19:17:56 +02:00
Tobi Smethurst
ff406be68f
Timeline loop fix ( #140 )
...
* uwu we made a fucky wucky
* uwu we made a fucky wucky
* work on timeline fixes a little
* fiddle with tests some more
* bleep bloop more tests
* more tests
* update drone yml
* update some sturf
* make the timeline code a bit lazier
* go fmt
* fix drone.yml
2021-08-15 18:43:08 +02:00
Tobi Smethurst
a4a33b9ad9
Don't run tests+lint on merge to main ( #139 )
2021-08-12 21:22:23 +02:00
Tobi Smethurst
98263a7de6
Grand test fixup ( #138 )
...
* start fixing up tests
* fix up tests + automate with drone
* fiddle with linting
* messing about with drone.yml
* some more fiddling
* hmmm
* add cache
* add vendor directory
* verbose
* ci updates
* update some little things
* update sig
2021-08-12 21:03:24 +02:00
Tobi Smethurst
329a5e8144
Text duplication fix ( #137 )
...
* start testing text duplication
* tests
* fixes + tests
2021-08-11 16:54:54 +02:00
tsmethurst
8330263965
ahhh
2021-08-10 18:33:43 +02:00
tsmethurst
2df77e4ffa
add drone.yml
2021-08-10 18:32:55 +02:00
Tobi Smethurst
6acd410426
Bugfixerino ( #133 )
...
* fix some lil bugs
* fmt, lint
2021-08-10 16:56:59 +02:00
tsmethurst
93792d3f1e
roll back to sha256 for signatures
2021-08-10 13:59:37 +02:00
Tobi Smethurst
0f2de6394a
Dereference remote replies ( #132 )
...
* decided where to put reply dereferencing
* fiddling with dereferencing threads
* further adventures
* tidy up some stuff
* move dereferencing functionality
* a bunch of refactoring
* go fmt
* more refactoring
* bleep bloop
* docs and linting
* start implementing replies collection on gts side
* fiddling around
* allow dereferencing our replies
* lint, fmt
2021-08-10 13:32:39 +02:00
Tobi Smethurst
0386a28b5a
Frodo swaggins ( #126 )
...
* more swagger fun
* document a whole bunch more stuff
* more swagger yayyyyyyy
* progress + go fmt
2021-08-02 19:06:44 +02:00
tsmethurst
cb85f65cca
fix breaky linky
2021-07-31 23:20:38 +02:00
Tobi Smethurst
6bd26ff4c4
more swagger docs + other changes ( #125 )
...
* more swagger docs + other changes
* go fmt
2021-07-31 23:17:39 +02:00