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)
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)
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
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
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
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
Tobi Smethurst
6bd26ff4c4
more swagger docs + other changes ( #125 )
...
* more swagger docs + other changes
* go fmt
2021-07-31 23:17:39 +02:00
Tobi Smethurst
58dddd86e0
Swagger ( #124 )
...
* start experimenting with swagger documentation
* further adventures in swagger
* do a few more api paths
* account paths documented
* go fmt
* fix up some models
* bit o lintin'
2021-07-31 17:49:59 +02:00
Tobi Smethurst
eb13faf54f
Password change ( #123 )
...
* add password change command
* document cli commands
* go fmt
2021-07-31 13:57:23 +02:00
Tobi Smethurst
a940a520d3
Link hashtag bug ( #121 )
...
* link + hashtag bug
* remove printlns
* tidy up some duplicated code
2021-07-29 13:18:22 +02:00
Tobi Smethurst
ea8ad8b346
Link parsing ( #120 )
...
* add link parsing + formatting functionality
* refinement + docs
* add missing test
* credit url library
2021-07-28 11:42:26 +02:00
Tobi Smethurst
2c2dbe318e
federating db updates ( #118 )
2021-07-27 10:45:22 +02:00
Tobi Smethurst
ad0e26dc04
Markdown Statuses ( #116 )
...
* parse markdown statuses if desired
* add some preliminary docs for writing posts
2021-07-26 20:25:54 +02:00
Tobi Smethurst
e2757ae676
add trusted proxy for parsing client IPs ( #115 )
2021-07-26 16:15:36 +02:00
Tobi Smethurst
5bf4fb49e0
Tiny fix ( #114 )
...
* allow custom ports for webserver and le
* fix teensy mistake not setting default port
2021-07-24 19:31:38 +02:00
Tobi Smethurst
bc1d8a9265
allow custom ports for webserver and le ( #111 )
2021-07-24 19:02:41 +02:00
Tobi Smethurst
05e9af089c
Oidc ( #109 )
...
* add oidc config
* inching forward with oidc idp
* lil webfingy fix
* bit more progress
* further oidc
* oidc now working
* document dex config
* replace broken images
* add additional credits
* tiny doc update
* update
* add oidc config
* inching forward with oidc idp
* bit more progress
* further oidc
* oidc now working
* document dex config
* replace broken images
* add additional credits
* tiny doc update
* update
* document
* docs + comments
2021-07-23 10:36:28 +02:00
Tobi Smethurst
113186ce4e
lil webfingy fix ( #106 )
...
* lil webfingy fix
* return requested content type from fede requests
2021-07-21 17:46:59 +02:00
Tobi Smethurst
29bdc41baa
Config bugfix ( #104 )
...
* fix some config bugs
* go fmt
2021-07-19 19:31:47 +02:00
Tobi Smethurst
b1a4f38e38
allow different host + accountDomain ( #103 )
...
* allow different host + accountDomain
* use accountDomain in tags
2021-07-19 18:42:08 +02:00
Tobi Smethurst
677490bc4e
Db tls ( #102 )
...
* go mod tidy
* complete example config
* add tls support for db connection
* add certpool to tlsConfig
* add some lil docker scripts
2021-07-19 18:03:07 +02:00