summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2023-05-29[chore]: Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#1842)Libravatar dependabot[bot]14
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29[chore]: Bump github.com/minio/minio-go/v7 from 7.0.53 to 7.0.55 (#1844)Libravatar dependabot[bot]31
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-28[bugfix/chore] Inbox post updates (#1821)Libravatar tobi4
Co-authored-by: kim <grufwub@gmail.com>
2023-05-28[chore] tidy up media manager, add calling func to errors, build-script ↵Libravatar kim64
improvements (#1835) * media manager tidy-up: de-interface and remove unused PostDataFunc Signed-off-by: kim <grufwub@gmail.com> * remove last traces of media.Manager being an interface Signed-off-by: kim <grufwub@gmail.com> * update error to provide caller, allow tuneable via build tags Signed-off-by: kim <grufwub@gmail.com> * remove kim-specific build script changes Signed-off-by: kim <grufwub@gmail.com> * fix merge conflicts Signed-off-by: kim <grufwub@gmail.com> * update build-script to support externally setting build variables Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-05-26[docs] Update + simplify roadmap, revise beta estimate (#1826)Libravatar tobi3
2023-05-25[docs]: semaphone ref & DEBUG usage for standalone testing (#1828)Libravatar decentral1se1
* Point to semaphore for local testing * Use `DEBUG=1` when running the testrig * Provide an approach for install yarn Co-authored-by: decentral1se <cellarspoon@riseup.net>
2023-05-25[bugfix/docs] Fix clear notifications API docs (#1831)Libravatar Daenney2
The handler is already hooked to the right path, it's just the docs that were missing the path.
2023-05-25[feature] Configurable custom css length (#1827)Libravatar tobi9
* [feature] Make accounts custom css length configurable * test custom css validation
2023-05-25[bugfix] allow usernames of length 1 (#1823)Libravatar decentral1se2
Closes https://github.com/superseriousbusiness/gotosocial/issues/1691. Co-authored-by: decentral1se <cellarspoon@riseup.net>
2023-05-25[feature] Add List functionality (#1802)Libravatar tobi123
* start working on lists * further list work * test list db functions nicely * more work on lists * peepoopeepoo * poke * start list timeline func * we're getting there lads * couldn't be me working on stuff... could it? * hook up handlers * fiddling * weeee * woah * screaming, pissing * fix streaming being a whiny baby * lint, small test fix, swagger * tidying up, testing * fucked! by the linter * move timelines to state like a boss * add timeline start to tests using state * invalidate lists
2023-05-23[docs] local docs hacking howto (#1816)v0.9.0Libravatar decentral1se1
Co-authored-by: decentral1se <cellarspoon@riseup.net>
2023-05-23[docs] code highlighting configuration (#1817)Libravatar decentral1se1
Co-authored-by: decentral1se <cellarspoon@riseup.net>
2023-05-23[docs] support copy/pasta for code blocks (#1818)Libravatar decentral1se1
Co-authored-by: decentral1se <cellarspoon@riseup.net>
2023-05-22[chore]: Bump github.com/minio/minio-go/v7 from 7.0.52 to 7.0.53 (#1808)Libravatar dependabot[bot]10
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.52 to 7.0.53. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.52...v7.0.53) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 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>
2023-05-22[chore] update account statuses paging logic (#1814)Libravatar tobi5
2023-05-22[chore]: Bump github.com/go-playground/validator/v10 (#1812)Libravatar dependabot[bot]38
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.13.0 to 10.14.0. - [Release notes](https://github.com/go-playground/validator/releases) - [Commits](https://github.com/go-playground/validator/compare/v10.13.0...v10.14.0) --- updated-dependencies: - dependency-name: github.com/go-playground/validator/v10 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-21[chore] Replace pinafore with semaphore (#1801)Libravatar Julian-Samuel Gebühr8
* Replace pinafore with semaphore * Typo
2023-05-21[bugfix] Add back removed ValidateRequest() before backoff-retry loop (#1805)v0.9.0-rc2Libravatar kim12
* add back removed ValidateRequest() before backoff-retry loop Signed-off-by: kim <grufwub@gmail.com> * include response body in error response log Signed-off-by: kim <grufwub@gmail.com> * improved error response body draining Signed-off-by: kim <grufwub@gmail.com> * add more code commenting Signed-off-by: kim <grufwub@gmail.com> * move new error response logic to gtserror, handle instead in transport.Transport{} impl Signed-off-by: kim <grufwub@gmail.com> * appease ye oh mighty linter Signed-off-by: kim <grufwub@gmail.com> * fix mockhttpclient not setting request in http response Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-05-21[feature] Make client IP logging configurable (#1799)Libravatar Daenney9
2023-05-21[bugfix] Start + stop caches properly for testrig + pruning (#1804)Libravatar tobi2
* [bugfix] Start + stop caches properly for testrig + pruning * go fmt ./...
2023-05-21[bugfix] Fix incorrect default for empty emoji domain (#1803)Libravatar tobi1
2023-05-16[chore] Change time comparison in webfinger test (#1798)Libravatar Daenney1
Every now and then the TestFingerWithHostMetaCacheStrategy would fail on a time related error. I suspect suite.Equal doesn't quite work as expected when given two time.Time's, so instead explicitly check with the time.Equal.
2023-05-16[bugfix] Fix NegotiateFormat with multiple accept headers (#1797)Libravatar Daenney5
* [bugfix] Fix NegotiateAccept with multi accept There's a bug in Gin's NegotiateFormat that doesn't handle the presence of multilpe accept headers. This lifts the code from the PR @tsmethurst sent a year ago to Gin into our codebase to fix the issue. * [bugfix] Concat accept header in webfinger Some implementations bug out when there's multiple accept headers, including Gin (see 7050112af1ccc935ec542cb41fa8b07f7357539d). But things seem to work reliably with a single accept header with multiple parts. Fixes: #1793
2023-05-15[bugfix] Fix proxy_pass in named location (#1794)Libravatar Daenney1
A proxy_pass in a named location, @name, should not include a trailing slash.
2023-05-15[docs] add missing observability settings to example config (#1790)Libravatar tobi1
2023-05-15[docs] remove nginx trailing slash (#1789)Libravatar tobi1
2023-05-15[chore]: Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#1784)Libravatar dependabot[bot]3
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.8.0 to 0.9.0. - [Commits](https://github.com/golang/crypto/compare/v0.8.0...v0.9.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-15[bugfix] Fix duplicating fields on profile edit (#1788)Libravatar tobi3
* [bugfix] Fix duplicating fields on profile edit * test non-duplicate fields
2023-05-15[chore]: Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 (#1785)Libravatar dependabot[bot]8
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.7.0 to 0.8.0. - [Commits](https://github.com/golang/oauth2/compare/v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-14[bugfix] update go-cache to v3.3.3 (#1778)v0.9.0-rc1Libravatar kim6
* update go-cache to v3.3.1 Signed-off-by: kim <grufwub@gmail.com> * bump go-cache again Signed-off-by: kim <grufwub@gmail.com> * remove accidentally comitted build-script changes Signed-off-by: kim <grufwub@gmail.com> * now v3.3.3 ... Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-05-14[frogend/chore] Fix profile domain (#1779)Libravatar f0x521
* render domain on profile pages * remove unused additional sr-only spans
2023-05-14[frogend/chore] Update backnextlinks (#1774)Libravatar tobi1
2023-05-13[docs] Add implementation notes for report (Flag) functionality (#1324)Libravatar tobi1
* add implementation notes for reports * add note on Friendica
2023-05-13[docs] update instance splash and profile screenshots (#1775)Libravatar tobi2
2023-05-13[frontend] Basic user moderation actions (#1728)Libravatar f0x5216
* remove info banner * update swagger definition for AccountAction * basic user view, suspend action * clean up suspended user display * basic user searching * rename User -> Account for clarity * refactor error boundary component to give better info * appease the linter
2023-05-12[bugfix] Downstep otel to fix freebsd compile issue (#1773)Libravatar tobi70
https://github.com/open-telemetry/opentelemetry-go/issues/4076
2023-05-12[chore] Update a bunch of database dependencies (#1772)Libravatar tobi402
* [chore] Update a bunch of database dependencies * fix lil thing
2023-05-12[frogend/bugfix] fix dynamicSpoiler elements (#1771)Libravatar f0x522
2023-05-12[frogend/chore] remove break-all on profile fields (#1770)Libravatar tobi1
2023-05-12[bugfix] Ensure account fields can be set by JSON (#1762)Libravatar tobi4
2023-05-12[feature] status refetch support (#1690)Libravatar kim55
* revamp http client to not limit requests, instead use sender worker Signed-off-by: kim <grufwub@gmail.com> * remove separate sender worker pool, spawn 2*GOMAXPROCS batch senders each time, no need for transport cache sweeping Signed-off-by: kim <grufwub@gmail.com> * improve batch senders to keep popping recipients until remote URL found Signed-off-by: kim <grufwub@gmail.com> * fix recipient looping issue Signed-off-by: kim <grufwub@gmail.com> * move request id ctx key to gtscontext, finish filling out more code comments, add basic support for not logging client IP Signed-off-by: kim <grufwub@gmail.com> * first draft of status refetching logic Signed-off-by: kim <grufwub@gmail.com> * fix testrig to use new federation alloc func signature Signed-off-by: kim <grufwub@gmail.com> * fix log format directive Signed-off-by: kim <grufwub@gmail.com> * add status fetched_at migration Signed-off-by: kim <grufwub@gmail.com> * remove unused / unchecked for error types Signed-off-by: kim <grufwub@gmail.com> * add back the used type... Signed-off-by: kim <grufwub@gmail.com> * add separate internal getStatus() function for derefThread() that doesn't recurse Signed-off-by: kim <grufwub@gmail.com> * improved mention and media attachment error handling Signed-off-by: kim <grufwub@gmail.com> * fix log and error format directives Signed-off-by: kim <grufwub@gmail.com> * update account deref to match status deref changes Signed-off-by: kim <grufwub@gmail.com> * very small code formatting change to make things clearer Signed-off-by: kim <grufwub@gmail.com> * add more code comments Signed-off-by: kim <grufwub@gmail.com> * improved code commenting Signed-off-by: kim <grufwub@gmail.com> * only check for required further derefs if needed Signed-off-by: kim <grufwub@gmail.com> * improved cache invalidation Signed-off-by: kim <grufwub@gmail.com> * tweak cache restarting to use a (very small) backoff Signed-off-by: kim <grufwub@gmail.com> * small readability changes and fixes Signed-off-by: kim <grufwub@gmail.com> * fix account sync issues Signed-off-by: kim <grufwub@gmail.com> * fix merge conflicts + update account enrichment to accept already-passed accountable Signed-off-by: kim <grufwub@gmail.com> * remove secondary function declaration Signed-off-by: kim <grufwub@gmail.com> * normalise dereferencer get status / account behaviour, fix remaining tests Signed-off-by: kim <grufwub@gmail.com> * fix remaining rebase conflicts, finish commenting code Signed-off-by: kim <grufwub@gmail.com> * appease the linter Signed-off-by: kim <grufwub@gmail.com> * add source file header Signed-off-by: kim <grufwub@gmail.com> * update to use TIMESTAMPTZ column type instead of just TIMESTAMP Signed-off-by: kim <grufwub@gmail.com> * don't pass in 'updated_at' to UpdateEmoji() Signed-off-by: kim <grufwub@gmail.com> * use new ap.Resolve{Account,Status}able() functions Signed-off-by: kim <grufwub@gmail.com> * remove the somewhat confusing rescoping of the same variable names Signed-off-by: kim <grufwub@gmail.com> * update migration file name, improved database delete error returns Signed-off-by: kim <grufwub@gmail.com> * formatting Signed-off-by: kim <grufwub@gmail.com> * improved multi-delete database functions to minimise DB calls Signed-off-by: kim <grufwub@gmail.com> * remove unused type Signed-off-by: kim <grufwub@gmail.com> * fix delete statements Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-05-12[chore] Prefer JSON errors in API endpoints (#1766)Libravatar Natsu Kagami11
* Default to JSON over HTML for error handling * Change the default error display for web endpoints to html
2023-05-11use more semantic headers for profile page (#1765)Libravatar f0x522
2023-05-11[frontend] Profiles with fields & more (#1764)Libravatar f0x5221
* redesign status template * separate index page styling * redesign profile template * fix header styling/wrapping * remove old spoiler js * fix status cw button wrapping * fix status info variables * profile responsiveness, accessibility tweaks * fix variable use, mobile * remove duplicate id's * rss icon, fix indent * fix toot border-radius * fix toot spacing * emojify and html profile fields * refactor (sensitive) media rendering * plaintext profile fields * bundle plyr icon svg * only pause video when switching photoswipe slides * yarn upgrade * profile fields formatting * replace uglifyify with @browserify updated fork * fix profile field templating (yet again) * fix React classes * testrig: add testing profile field for admin user * fix sensitive media interactions * Revert "testrig: add testing profile field for admin user" This reverts commit 80490c183e6639ce5b57fcfca6772d8f96df8706. * settings interface wrapping * fix reported toot styling * add role to profile sr-only text * comment fallback rule * remove currently unused image description lacking indicator
2023-05-09feat: initial tracing support (#1623)Libravatar Dominik Süß472
2023-05-09[bugfix] Don't try to get user when serializing local instance account (#1757)Libravatar tobi4
2023-05-09[bugfix] fix possible domain blockcache nil ptr + add debug String() func ↵Libravatar kim2
(#1755)
2023-05-09[bugfix] update go-cache version to support multi-keying (#1756)Libravatar kim8
* update go-cache version to support multi-keying Signed-off-by: kim <grufwub@gmail.com> * improved cache invalidation Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-05-09[chore] tidy + update StatusToAPIStatus (#1754)Libravatar tobi2
2023-05-09[feature] Enable federation in/out of profile PropertyValue fields (#1722)Libravatar tobi180
Co-authored-by: kim <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>