summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2024-05-05[feature] Add HTTP header permission section to frontend (#2893)Libravatar tobi27
* [feature] Add HTTP header filter section to frontend * tweak naming a bit
2024-05-02[frontend] Do optimistic update when approving/rejecting/suspending account ↵Libravatar tobi2
(#2892)
2024-05-02add missing caches to the main cache sweep command (#2891)Libravatar kim1
2024-05-02[bugfix] Lock when checking/creating notifs to avoid race (#2890)Libravatar tobi15
* [bugfix] Lock when checking/creating notifs to avoid race * test notif spam
2024-05-01[feature] Page through accounts as moderator (#2881)Libravatar tobi30
* [feature] Page through accounts as moderator * aaaaa * use COLLATE "C" for Postgres to ensure same ordering as SQLite * fix typo, test paging up * don't show moderation / info for our instance acct
2024-05-01[bugfix] Tidy up remaining references to workers in cmd (#2889)Libravatar tobi3
2024-05-01[bugfix] function queue memory pools limitlessly grow (#2882)Libravatar kim1
* updates the simple queue memory pool to actually self-clean + limit growth * update memory pool cleaning frequency
2024-05-01[bugfix] flaky paging test (#2888)Libravatar kim1
2024-04-30[bugfix] further paging mishaps (#2884)Libravatar kim5
* FURTHER paging shenanigans :smiling_face_with_tear: * remove cursor logic from ToLinkURL() * fix up paging tests --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-04-30[bugfix] retry on http 500 errors *inclusive* (#2886)Libravatar kim1
2024-04-30[chore] include attemptno in httpclient logs (#2887)Libravatar kim1
* include request attempt number in httpclient logs * slightly nicer attempt number formatting
2024-04-30[docs] Remove last references to RPi (#2885)Libravatar Daenney2
This updates the documentation to remove the last stray references to the copaganda Pi. It now uses the the term single-board computer. GtS can run fine on all kinds of SBCs and isn't limited to that one particular fruit version.
2024-04-30[bugfix] paging rel links (#2883)Libravatar kim3
* fix paging so it uses correct cursor query parameter name * improved code comment * whoops, flip the cursoring :facepalm: * fix the broken test
2024-04-29[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20 (#2875)Libravatar dependabot[bot]6
2024-04-29[chore]: Bump github.com/minio/minio-go/v7 from 7.0.69 to 7.0.70 (#2877)Libravatar dependabot[bot]27
2024-04-29[chore] Fix conflict in workers tests (#2880)Libravatar tobi3
* [chore] Fix conflict in workers tests * commenty-wenty
2024-04-29[chore]: Bump ↵Libravatar dependabot[bot]12
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc (#2878)
2024-04-29[chore]: Bump go.opentelemetry.io/otel/sdk from 1.25.0 to 1.26.0 (#2879)Libravatar dependabot[bot]10
2024-04-26[bugfix] Fix error string typo (#2873)Libravatar kim1
2024-04-26[performance] update remaining worker pools to use queues (#2865)Libravatar kim79
* start replacing client + federator + media workers with new worker + queue types * refactor federatingDB.Delete(), drop queued messages when deleting account / status * move all queue purging to the processor workers * undo toolchain updates * code comments, ensure dereferencer worker pool gets started * update gruf libraries in readme * start the job scheduler separately to the worker pools * reshuffle ordering or server.go + remove duplicate worker start / stop * update go-list version * fix vendoring * move queue invalidation to before wipeing / deletion, to ensure queued work not dropped * add logging to worker processing functions in testrig, don't start workers in unexpected places * update go-structr to add (+then rely on) QueueCtx{} type * ensure more worker pools get started properly in tests * fix remaining broken tests relying on worker queue logic * fix account test suite queue popping logic, ensure noop workers do not pull from queue * move back accidentally shuffled account deletion order * ensure error (non nil!!) gets passed in refactored federatingDB{}.Delete() * silently drop deletes from accounts not permitted to * don't warn log on forwarded deletes * make if else clauses easier to parse * use getFederatorMsg() * improved code comment * improved code comment re: requesting account delete checks * remove boolean result from worker start / stop since false = already running or already stopped * remove optional passed-in http.client * remove worker starting from the admin CLI commands (we don't need to handle side-effects) * update prune cli to start scheduler but not all of the workers * fix rebase issues * remove redundant return statements * i'm sorry sir linter
2024-04-26[chore] update Docker container to use new go swagger hash (#2872)Libravatar tobi1
2024-04-26[chore] Update the flags passed to goreleaser (#2869)Libravatar Daenney1
* [chore] Update the flags passed to goreleaser --rm-dist has been deprecated, the new flag is called --clean. Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-04-26[chore] Update setting testrig loglevel (#2870)Libravatar Daenney1
cmp.Or was introduced in Go 1.22 and picks the first value that's not the zero value for the type. For a string, the zero value is the empty string, which is what os.Getenv will return if the environment variable is not set. That then results in "error" being returned instead. This allows loading an environment variable with a default without having to do the check and write out the conditional.
2024-04-26[chore] Bump go swagger (#2871)Libravatar tobi251
* bump go swagger version * bump swagger version
2024-04-26[chore] Upgrade our Go version to 1.22 (#2862)Libravatar Daenney4
* [chore] Upgrade our Go version to 1.22 With Go 1.22 having been released at the start of February, it's now been a few months. No major issues have shown up, and the two point release since then have primarily been security fixes plus some general bug fixing. This sets the required Go version to 1.22, as there's nothing in 1.22.1 or 1.22.2 that we would explicitly require. It sets the toolchain to the latest point release, to ensure we pick up any fixes from there when building releases etc. * [chore] Update CI to Go 1.22 * [chore] Update golangci-lint to 1.25.7 Newer version should know about Go 1.22 and run fine. * [chore] Update Docker container to Go 1.22 * [chore] Update Dockerfile to newer Alpine version * sign drone.yml * add missing license header --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-04-25[chore] Settings refactor 2: the re-refactoring-ing (#2866)Libravatar tobi41
* [chore] Bit more refactoring of settings panel * fix up some remaining things * groovy baby yeah! * remove unused Suspense
2024-04-24[chore] Refactor settings panel routing (and other fixes) (#2864)Libravatar tobi55
2024-04-22[chore]: Bump codeberg.org/gruf/go-mutexes from 1.4.0 to 1.4.1 (#2860)Libravatar dependabot[bot]4
Bumps codeberg.org/gruf/go-mutexes from 1.4.0 to 1.4.1. --- updated-dependencies: - dependency-name: codeberg.org/gruf/go-mutexes dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22[chore]: Bump github.com/miekg/dns from 1.1.58 to 1.1.59 (#2861)Libravatar dependabot[bot]9
2024-04-22[chore] bump modernc.org/sqlite to v1.29.8 (with our concurrency workaround) ↵Libravatar kim17
(#2855)
2024-04-22[chore] Update robots.txt (#2856)Libravatar Daenney3
This updates the robots.txt based on the list of the ai.robots.txt repository. We can look at automating that at some point. It's worth pointing out that some robots, namely the ones by Bytedance, are known to ignore robots.txt entirely.
2024-04-22[chore]: Bump github.com/KimMachineGun/automemlimit from 0.5.0 to 0.6.0 (#2859)Libravatar dependabot[bot]7
2024-04-18[bugfix] Fix incorrect field name for status source, add helpful message (#2854)Libravatar tobi4
* [bugfix] Fix incorrect field name for status source, add helpful message * swagger * yyammm
2024-04-18[feature] Stub conversations endpoint (#2853)Libravatar tobi5
2024-04-18[feature] Stub account mutes endpoint (#2852)Libravatar tobi4
* [feature] Stub account mutes endpoint * swagger? i barely know 'er!
2024-04-17bump to modernc.org/sqlite v1.29.7 (#2850)Libravatar kim120
2024-04-17update to set requesting account when deleting status (#2849)Libravatar kim1
2024-04-17[feature] Status source endpoint (#2848)Libravatar tobi7
* [feature] statusSource endpoint * finish up
2024-04-17[feature] Stub status history endpoint (#2847)Libravatar tobi6
2024-04-17[bugfix] Fix minor API issue w/ boosted statuses (#2846)Libravatar tobi3
2024-04-16[bugfix] fix get all tokens (#2841)Libravatar tobi2
2024-04-16[feature/performance] Store account stats in separate table (#2831)Libravatar tobi43
* [feature/performance] Store account stats in separate table, get stats from remote * test account stats * add some missing increment / decrement calls * change stats function signatures * rejig logging a bit * use lock when updating stats
2024-04-15[performance] cached oauth database types (#2838)Libravatar kim18
* update token + client code to use struct caches * add code comments * slight tweak to default mem ratios * fix envparsing * add appropriate invalidate hooks * update the tokenstore sweeping function to rely on caches * update to use PutClient() * add ClientID to list of token struct indices
2024-04-15[chore] Turn `accounts-registration-open` false by default (#2839)Libravatar tobi3
2024-04-15[chore] bump bun library versions (#2837)Libravatar kim22
2024-04-15[chore]: Bump golang.org/x/net from 0.23.0 to 0.24.0 (#2834)Libravatar dependabot[bot]3
2024-04-15[chore]: Bump golang.org/x/crypto from 0.21.0 to 0.22.0 (#2835)Libravatar dependabot[bot]10
2024-04-14[chore] Delete the unnecessary #, because this # lead to the wrong URL (#2830)Libravatar Bishochiparaa1
2024-04-13[feature] Admin accounts endpoints; approve/reject sign-ups (#2826)Libravatar tobi74
* update settings panels, add pending overview + approve/deny functions * add admin accounts get, approve, reject * send approved/rejected emails * use signup URL * docs! * email * swagger * web linting * fix email tests * wee lil fixerinos * use new paging logic for GetAccounts() series of admin endpoints, small changes to query building * shuffle useAccountIDIn check *before* adding to query * fix parse from toot react error * use `netip.Addr` * put valid slices in globals * optimistic updates for account state --------- Co-authored-by: kim <grufwub@gmail.com>
2024-04-13[performance] update GetAccountsByIDs() to use the new multi cache loader ↵Libravatar kim1
endpoint (#2828) * update GetAccountsByIDs() to use the new multi cache loader endpoint * fix broken import