summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2021-09-01lil moveLibravatar tsmethurst1
2021-09-01more updatesLibravatar tsmethurst18
2021-09-01change muchos thingsLibravatar tsmethurst70
2021-09-01go fmtLibravatar tsmethurst4
2021-09-01more work on struct validationLibravatar tsmethurst12
2021-09-01more work on struct validationLibravatar tsmethurst14
2021-09-01statusmute annotationsLibravatar tsmethurst1
2021-09-01start working on struct validation for gtsmodelLibravatar tsmethurst10
2021-09-01Improve GetRemoteStatus and db.GetStatus() logic (#174)Libravatar kim36
* only fetch status parents / children if explicity requested when dereferencing Signed-off-by: kim (grufwub) <grufwub@gmail.com> * Remove recursive DB GetStatus logic, don't fetch parent unless requested Signed-off-by: kim (grufwub) <grufwub@gmail.com> * StatusCache copies status so there are no thread-safety issues with modified status objects Signed-off-by: kim (grufwub) <grufwub@gmail.com> * remove sqlite test files Signed-off-by: kim (grufwub) <grufwub@gmail.com> * fix bugs introduced by previous commit Signed-off-by: kim (grufwub) <grufwub@gmail.com> * fix not continue on error in loop Signed-off-by: kim (grufwub) <grufwub@gmail.com> * use our own RunInTx implementation (possible fix for nested tx error) Signed-off-by: kim (grufwub) <grufwub@gmail.com> * fix cast statement to work with SQLite Signed-off-by: kim (grufwub) <grufwub@gmail.com> * be less strict about valid status in cache Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add cache=shared ALWAYS for SQLite db instances Signed-off-by: kim (grufwub) <grufwub@gmail.com> * Fix EnrichRemoteAccount when updating account fails Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add nolint tag Signed-off-by: kim (grufwub) <grufwub@gmail.com> * ensure file: prefixes the filename in sqlite addr Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add an account cache, add status author account from db Signed-off-by: kim (grufwub) <grufwub@gmail.com> * Fix incompatible SQLite query Signed-off-by: kim (grufwub) <grufwub@gmail.com> * *actually* use the new getAccount() function in accountsDB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update cache tests to use test suite Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add RelationshipTestSuite, add tests for methods with changed SQL Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-29Add SQLite support, fix un-thread-safe DB caches, small performance f… (#172)Libravatar kim730
* Add SQLite support, fix un-thread-safe DB caches, small performance fixes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add SQLite licenses to README Signed-off-by: kim (grufwub) <grufwub@gmail.com> * appease the linter, and fix my dumbass-ery Signed-off-by: kim (grufwub) <grufwub@gmail.com> * make requested changes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add back comment Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-29Mention fixup (#167)Libravatar tobi21
* rework mention creation a bit * rework mention creation a bit * tidy up status dereferencing * start adding tests for dereferencing * fixups * fix * review changes
2021-08-27Replace federating DB locks map, add a cleanup goroutine (#166)Libravatar kim2
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-27Gin logging (#165)Libravatar tobi5
* start messing around with logger * more messing about * fix error with instance not created on startup (#156) * set logger * log user agent * finalize logging * go fmt * start messing around with logger * more messing about * set logger * log user agent * finalize logging * go fmt
2021-08-27fix new tx within tx (#163)Libravatar kim1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26some more little fixes for all to enjoy (#161)Libravatar tobi3
2021-08-26fix broken db queries in auth (#160)Libravatar tobi2
2021-08-26fix null returned session (#159)Libravatar tobi5
2021-08-26oops (#157)Libravatar tobi1
2021-08-26fix error with instance not created on startup (#156)Libravatar tobi1
2021-08-26update drone yml (#153)Libravatar tobi1
2021-08-26Improved build script (#152)Libravatar kim1
- explicity disable cgo - ensure static builds - reduce binary size - small formatting changes Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-08-26fix public timeline bug (#150)Libravatar tobi18
2021-08-25Pg to bun (#148)Libravatar tobi713
* 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-23Manually approves followers (#146)Libravatar tobi44
* update go-fed * update go-fed * manuallyapprovesfollowers * serialize manuallyApprovesFollowers
2021-08-20Database updates (#144)Libravatar tobi164
* 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-16Text/status parsing fixes (#141)Libravatar Tobi Smethurst56
* aaaaaa * vendor minify * update + test markdown parsing
2021-08-15Timeline loop fix (#140)Libravatar Tobi Smethurst13
* 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-12Don't run tests+lint on merge to main (#139)Libravatar Tobi Smethurst1
2021-08-12Grand test fixup (#138)Libravatar Tobi Smethurst2677
* 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-11Text duplication fix (#137)Libravatar Tobi Smethurst13
* start testing text duplication * tests * fixes + tests
2021-08-10ahhhLibravatar tsmethurst1
2021-08-10add drone.ymlLibravatar tsmethurst1
2021-08-10Bugfixerino (#133)Libravatar Tobi Smethurst7
* fix some lil bugs * fmt, lint
2021-08-10roll back to sha256 for signaturesLibravatar tsmethurst1
2021-08-10Dereference remote replies (#132)Libravatar Tobi Smethurst68
* 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-02Frodo swaggins (#126)Libravatar Tobi Smethurst58
* more swagger fun * document a whole bunch more stuff * more swagger yayyyyyyy * progress + go fmt
2021-07-31fix breaky linkyLibravatar tsmethurst1
2021-07-31more swagger docs + other changes (#125)Libravatar Tobi Smethurst15
* more swagger docs + other changes * go fmt
2021-07-31requirements.txt for RtDLibravatar tsmethurst2
2021-07-31Swagger (#124)Libravatar Tobi Smethurst37
* 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-31Password change (#123)Libravatar Tobi Smethurst3
* add password change command * document cli commands * go fmt
2021-07-29Link hashtag bug (#121)Libravatar Tobi Smethurst15
* link + hashtag bug * remove printlns * tidy up some duplicated code
2021-07-28Link parsing (#120)Libravatar Tobi Smethurst9
* add link parsing + formatting functionality * refinement + docs * add missing test * credit url library
2021-07-27build and bundle admin console + web assets (#119)Libravatar Tobi Smethurst1
2021-07-27federating db updates (#118)Libravatar Tobi Smethurst8
2021-07-27doc updates (#117)Libravatar Tobi Smethurst1
2021-07-26Markdown Statuses (#116)Libravatar Tobi Smethurst19
* parse markdown statuses if desired * add some preliminary docs for writing posts
2021-07-26add trusted proxy for parsing client IPs (#115)Libravatar Tobi Smethurst7
2021-07-24Merge branch 'main' of github.com:superseriousbusiness/gotosocial into mainLibravatar tsmethurst1
2021-07-24Tiny fix (#114)Libravatar Tobi Smethurst1
* allow custom ports for webserver and le * fix teensy mistake not setting default port