summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2024-04-04fix possible nil panic (#2809)Libravatar kim1
2024-04-04[chore] Log less output on failed test (#2804)Libravatar Daenney3
* [chore] Log less output on failed test This changes the testrig log level to be error by default instead of info. This makes test failures a lot easier to read, as we don't have the parade of info logs for each failure to scroll through. It speeds up the test suite by a couple of seconds since we need to buffer and flush a lot less messages. On a clean run, so no test failures, it's about a 3s difference on my machine. Depending on the amount of test failures, total time saved can vary. This also introduces a GTS_TESTRIG_LOG_LEVEL environment variable that we explicitly check for, making it easy to override the log level should we have a need for it. This would be primarily for running locally, and not so much as part of go test. Lastly, it updates the syslog tests to use log.Error because if the log level is set to error but we call log.Info no message is emitted and we hang indefinitely on the channel read. * [chore] Rename the testrig log level env var
2024-04-03[bugfix] Sort follows chronologically (#2801)Libravatar Daenney2
The id on the follows table is not a ULID, but a random ID. Sorting on them results in a completely random order. Instead, sort on created_at, which sould result in a stable and intended sort order. Fixes: #2769 Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
2024-04-03[bugfix] improved authenticate post inbox error handling (#2803)Libravatar kim4
* improved PostInboxScheme() error handling / logging in case of failed auth * dumbass kim. returning err instead of errWithCode... * add checks for the slightly changed error handling in tests, add notes in codebase about the odd way of working
2024-04-02[bugfix] Set domain for empty-domain Friendica accounts (#2800)v0.15.0-rc1Libravatar tobi1
2024-04-02[bugfix] Set the `Host` header within the signing transport (#2799)Libravatar kim7
2024-04-02[bugfix] httpclient not signing subsequent redirect requests (#2798)Libravatar kim6
* move http request signing to transport * actually hook up the http roundtripper ... * add code comments for the new gtscontext functions
2024-04-02[chore] Try to parse public key as both Actor + bare key (#2710)Libravatar tobi5
* [chore] Try to parse public key as both Actor + bare key * fix weird test fail
2024-04-02[chore] bump go structr cache version -> v0.6.0 (#2773)Libravatar kim62
* update go-structr library -> v0.6.0, add necessary wrapping types + code changes to support these changes * update readme with go-structr package changes * improved wrapping of the SliceCache type * add code comments for the cache wrapper types * remove test.out :innocent: --------- Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2024-04-02[feature] Option to hide followers/following (#2788)Libravatar tobi19
2024-04-02[feature] Add `enable` command to mirror existing `disable` command; update ↵Libravatar tobi4
docs (#2792) * [feature] add `enable` CLI command to mirror existing `disable` command * update docs
2024-03-29[chore] Vendor mkdocs fonts; update docs dependencies (#2789)Libravatar tobi17
* [chore] Update docs dependencies * update rtd deps * aaaa * why can't you just be normal! * vendor social plugin fonts
2024-03-29[chore] Bump express from 4.18.2 to 4.19.2 in /web/source (#2790)Libravatar dependabot[bot]1
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28[bugfix] Serve correct URI for AP following collection (#2787)Libravatar tobi1
2024-03-26[chore/frontend] Adjust contrast, mute blurple a bit (#2785)Libravatar tobi4
2024-03-25[feature] User-selectable preset CSS themes for accounts (#2777)Libravatar tobi32
* [feature] User-selectable preset themes * docs, more theme stuff * lint, tests * fix css name * correct some little issues * add another theme * fix poll background * okay last theme i swear * make retrieval of apimodel themes more conventional * preallocate stylesheet slices
2024-03-25[feature] Add healthcheck endpoints `/livez` and `/readyz` (#2783)Libravatar tobi11
* [feature] Add healthcheck endpoints `/livez` and `/readyz` * use select that returns no data
2024-03-25[bugfix] Avoid empty public/local timeline queries (#2784)Libravatar tobi4
2024-03-25[chore]: Bump github.com/gin-contrib/sessions from 0.0.5 to 1.0.0 (#2782)Libravatar dependabot[bot]93
2024-03-25[chore]: Bump github.com/coreos/go-oidc/v3 from 3.9.0 to 3.10.0 (#2779)Libravatar dependabot[bot]38
2024-03-25[chore]: Bump github.com/gin-contrib/cors from 1.7.0 to 1.7.1 (#2778)Libravatar dependabot[bot]3
2024-03-25[chore]: Bump github.com/gin-contrib/gzip from 0.0.6 to 1.0.0 (#2781)Libravatar dependabot[bot]105
2024-03-22[chore] Move local account settings to separate db table (#2770)Libravatar tobi36
* [chore] Move local account settings to separate database model * don't use separate settings_id
2024-03-22[bugfix] add all possible busy result codes to the sqlite errBusy catching ↵Libravatar kim1
check (#2775)
2024-03-21[chore]: Bump modernc.org/sqlite from 1.29.4 to 1.29.5 (#2768)Libravatar dependabot[bot]5
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.29.4 to 1.29.5. - [Commits](https://gitlab.com/cznic/sqlite/commits/v1.29.5) --- updated-dependencies: - dependency-name: modernc.org/sqlite 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-03-18[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.18 to 2.20.19 (#2767)Libravatar dependabot[bot]4
2024-03-18Bump follow-redirects from 1.15.4 to 1.15.6 in /web/source (#2763)Libravatar dependabot[bot]1
2024-03-18[chore]: Bump golang.org/x/oauth2 from 0.17.0 to 0.18.0 (#2766)Libravatar dependabot[bot]3
2024-03-18[chore]: Bump github.com/technologize/otel-go-contrib (#2765)Libravatar dependabot[bot]3
2024-03-15[bugfix] Parse links that contain non-ascii characters (#2762)Libravatar tobi3
2024-03-15[docs] Add IPv6 example for rate limit exceptions (#2761)Libravatar Daenney2
2024-03-15[chore] Swagger: add missing paging params to bookmarks list (#2759)Libravatar Vyr Cossont2
No code changes.
2024-03-15[chore] Different error message for net/mail parsing on go 1.21.8 and above ↵Libravatar Blake Smith1
(#2760) go 1.21.8 fixed some minor issues in net/mail that causes the test suite to fail for some mail validation cases. Although we're not on go 1.21.8 yet, make the test forward and backwards compatible. See: https://github.com/golang/go/commit/263c059b09fdd40d9dd945f2ecb20c89ea28efe5
2024-03-15[chore] Swagger: correct names and formats for several array params (#2758)Libravatar Vyr Cossont4
No code changes.
2024-03-14[docs] Add database maintenance section; update info message on ANALYZE run ↵Libravatar tobi3
(sqlite) (#2756) * [chore] Limit size of ANALYZE run after migration (sqlite) * add basic db maintenance tips * update docs, analyze * amend info message a wee bit * update docs/admin/database_maintenance.md wording Co-authored-by: Daenney <daenney@users.noreply.github.com> --------- Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Co-authored-by: Daenney <daenney@users.noreply.github.com>
2024-03-14[bugfix] Don't return 500 when searching for unpermitted status (#2753)Libravatar tobi1
2024-03-14[bugfix] only check replyTo visibility during permission checks IF status is ↵Libravatar kim1
local (#2757)
2024-03-13[chore] Expose move endpoint again, small settings panel fixes (#2752)Libravatar tobi5
2024-03-13[feature] Process outgoing Move from clientAPI (#2750)Libravatar tobi60
* prevent moved accounts from taking create-type actions * update move logic * federate move out * indicate on web profile when an account has moved * [docs] Add migration docs section * lock while checking + setting move state * use redirectFollowers func for clientAPI as well * comment typo * linter? i barely know 'er! * Update internal/uris/uri.go Co-authored-by: Daenney <daenney@users.noreply.github.com> * add a couple tests for move * fix little mistake exposed by tests (thanks tests) * ensure Move marked as successful * attach shared util funcs to struct * lock whole account when doing move * move moving check to after error check * replace repeated text with error func * linterrrrrr!!!! * catch self follow case --------- Co-authored-by: Daenney <daenney@users.noreply.github.com>
2024-03-13[bugfix]: Add missing Link headers in Swagger spec (#2751)Libravatar Vyr Cossont6
* Adds Link headers to all endpoints that use it for paging * Fixes the return type for listing what accounts someone follows
2024-03-12[chore] bump modernc.org/sqlite v1.28.0 -> v1.29.4 (#2749)Libravatar kim125
2024-03-12[feature] Process incoming `Move` activity (#2724)Libravatar tobi16
* [feature] Process incoming account Move activity * fix targetAcct typo * put move origin account on fMsg * shift more move functionality back to the worker fn * simplify error logic
2024-03-11[chore] Update usage of OTEL libraries (#2725)Libravatar Daenney126
* otel to 1.24 * prometheus exporter to 0.46 * bunotel to 1.1.17 Also: * Use schemaless URL for metrics * Add software version to tracing schema
2024-03-11[chore]: Bump github.com/minio/minio-go/v7 from 7.0.67 to 7.0.69 (#2748)Libravatar dependabot[bot]28
2024-03-11[chore]: Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.3 (#2733)Libravatar dependabot[bot]21
2024-03-11[chore]: Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.5 (#2747)Libravatar dependabot[bot]67
2024-03-11[chore]: Bump github.com/gin-contrib/cors from 1.5.0 to 1.7.0 (#2745)Libravatar dependabot[bot]158
2024-03-10[bugfix] Fix whitespace move_id issue (#2742)Libravatar tobi2
2024-03-10[bugfix] Don't error when populating MovedTo if account not found (#2741)Libravatar tobi2
* [bugfix] Don't error when populating MovedTo if account not found * test the thing
2024-03-10[chore] seperate snapshot from release in goreleaser (#2740)Libravatar CDN1