summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)AuthorFiles
2021-09-11fix keys used to access storage itemsLibravatar kim (grufwub)3
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11rename KVStore uses as storage to differentiate between upcoming store packageLibravatar kim (grufwub)9
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11add git.iim.gay/grufwub/go-store for storage backend, replacing blob.StorageLibravatar kim (grufwub)20
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-11only store statuses in the AS cache, not accounts (#210)Libravatar tobi1
2021-09-11kim is a reply guy (#208)Libravatar tobi19
* bun debug * bun trace logging hooks * more tests * fix up some stuffffff * drop the frontend cache until a proper fix is made * go fmt
2021-09-10fixes + db changes (#204)Libravatar tobi16
* fixes + db changes * make duration more lenient
2021-09-10remove boosted statuses from public (federated timeline) (#201)Libravatar kim1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10Prune unnecessary nullzeros, fixup db tags (#200)Libravatar kim12
* prune gtsmodel.Account bun tags, add note to gtsmodel dir Signed-off-by: kim (grufwub) <grufwub@gmail.com> * further database tag fixes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * more db tag fixups Signed-off-by: kim (grufwub) <grufwub@gmail.com> * fix removing nullzero for account timestamps... Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add nullzero back to accountid tag Signed-off-by: kim (grufwub) <grufwub@gmail.com> * rename gtsmodel readme Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10fix up status inreplyto visibility, + small format improvements (#199)Libravatar kim1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-09Import export (#194)Libravatar tobi45
* start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * update bun library -> v1.0.4 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library -> v4.3.1-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * handle oauth token scope, fix user.SigninCount + token.UserID Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update oauth library --> v4.3.2-SSB Signed-off-by: kim (grufwub) <grufwub@gmail.com> * update sqlite library -> v1.13.0 Signed-off-by: kim (grufwub) <grufwub@gmail.com> * review changes * start with export/import code * messing about with decoding/encoding * some more fiddling * stuff is WORKING * working pretty alright! * go fmt * fix up tests, add docs * start backup/restore doc * tweaks * credits * update advancedVisibility settings * review changes Co-authored-by: kim (grufwub) <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
2021-09-08Merge pull request #198 from NyaaaWhatsUpDoc/update/sqlite-libraryLibravatar kim1
Update/sqlite library
2021-09-08update sqlite library -> v1.13.0Libravatar kim (grufwub)1
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-08handle oauth token scope, fix user.SigninCount + token.UserIDLibravatar kim (grufwub)3
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-04rework media processing a little bit (#191)Libravatar tobi11
* rework media processing a little bit * review changes
2021-09-04tests + announce notification fix (#193)Libravatar tobi15
2021-09-03Merge pull request #186 from superseriousbusiness/struct_validationLibravatar kim124
Struct validation
2021-09-03review changesLibravatar tsmethurst1
2021-09-03Review changesLibravatar tsmethurst28
2021-09-02lintLibravatar tsmethurst3
2021-09-02token testsLibravatar tsmethurst2
2021-09-02client_testLibravatar tsmethurst2
2021-09-02account + application testsLibravatar tsmethurst4
2021-09-01session name fix (#185)Libravatar tobi3
2021-09-01moving stuff aroundLibravatar tsmethurst92
2021-09-01move oauth models into gtsmodelLibravatar tsmethurst37
2021-09-01lil moveLibravatar tsmethurst1
2021-09-01more updatesLibravatar tsmethurst11
2021-09-01change muchos thingsLibravatar tsmethurst69
2021-09-01go fmtLibravatar tsmethurst4
2021-09-01more work on struct validationLibravatar tsmethurst12
2021-09-01more work on struct validationLibravatar tsmethurst13
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 kim32
* 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 tobi19
* 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 tobi3
* 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-26fix public timeline bug (#150)Libravatar tobi18
2021-08-25Pg to bun (#148)Libravatar tobi249
* 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 tobi5
* update go-fed * update go-fed * manuallyapprovesfollowers * serialize manuallyApprovesFollowers
2021-08-20Database updates (#144)Libravatar tobi149
* 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 Smethurst10
* aaaaaa * vendor minify * update + test markdown parsing
2021-08-15Timeline loop fix (#140)Libravatar Tobi Smethurst12
* 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