summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2023-07-18[bugfix] Add missing `continue` statement in `prepareXBetweenIDs` (#1996)Libravatar tobi1
2023-07-13[bugfix] Set Vary header correctly on cache-control (#1988)v0.10.0-rc2Libravatar tobi19
* [bugfix] Set Vary header correctly on cache-control * Prefer activitypub types on AP endpoints * use immutable on file server, vary by range * vary auth on Accept
2023-07-12[chore] Skip webfinger test on CI (#1983)Libravatar Daenney1
2023-07-12[bugfix] Update account `Update` logic (#1984)Libravatar tobi3
2023-07-12[bugfix] Align default values in the configuration file with the code (#1971)Libravatar firescry11
* Set default value of SMTPFrom to empty string This parameter should contain proper e-mail address (to be provided by user during configuration). * Update default values in example/config.yaml Default values and related comments in example/config.yaml are aligned with values defined in internal/config/defaults.go. Small improvements to foramting of config.yaml file. * Add default value for AdvancedThrottlingRetryAfter to internal/config/defaults.go AdvancedThrottlingRetryAfter was introduced in 70739d3 (superseriousbusiness/gotosocial#1466). * Update config.yaml snippets in documentation
2023-07-12Bump semver from 6.3.0 to 6.3.1 in /web/source (#1981)Libravatar dependabot[bot]1
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1. - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md) - [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1) --- updated-dependencies: - dependency-name: semver dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12[bugfix] Properly handle range > content-length (#1979)Libravatar MaeIsBad1
This makes the serveFileRange function return the entire file if suffix-range is larger than content-length in compliance with RFC9110 Co-authored-by: mae <git@badat.dev>
2023-07-10[bugfix] Tidy up rss feed serving; don't error on empty feed (#1970)Libravatar tobi3
* [bugfix] Tidy up rss feed serving; don't error on empty feed * fall back to account creation time as rss feed update time * return feed early when account has no eligible statuses
2023-07-10[chore]: Bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 (#1975)Libravatar dependabot[bot]16
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10[feature] Use Read/Write lock for config (#1969)Libravatar Daenney3
2023-07-10[chore]: Bump golang.org/x/net from 0.11.0 to 0.12.0 (#1973)Libravatar dependabot[bot]37
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10[chore]: Bump golang.org/x/image from 0.8.0 to 0.9.0 (#1972)Libravatar dependabot[bot]16
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-09[chore] Fix password typos (#1966)Libravatar Daenney2
Fixes #1963
2023-07-09[docs] Activate the edit feature (#1967)Libravatar Daenney1
We already set edit_uri, but we forgot to enable the feature flag. By turning it on each page now gets an edit button on the right hand side of the page header. This'll open the edit view in GitHub.
2023-07-08[bugfix] Fix delete follow req instead of follow (#1962)Libravatar tobi1
2023-07-08[bugfix] Delete mutual follow (requests) when receiving block from remote ↵Libravatar tobi5
(#1960) * [bugfix] Delete mutual follow (requests) on block * fix test
2023-07-08[docs] Clarify how to add a page (#1959)Libravatar Daenney1
* Add instructions on how to make a new page show up in the sidebar / navigation * Explain how to create a virtual env to install the dependencies in if you're not using Conda
2023-07-08[bugfix] Don't overflow on very wide status'es (#1956)Libravatar Daenney1
If someone makes a post with a long, uninterrupted piece of text in a code snippet, we would stretch the column to fit it, resulting in the UI going a bit whacky. By setting min-width: 0% this fixes it, and we now automatically get a scrollbar on overflow instead. Fixes: #1952
2023-07-07[feature] enable + document explicit IP dialer allowing/denying (#1950)v0.10.0-rc1Libravatar tobi17
* [feature] enable + document explicit IP dialer allowing/denying * lord have mercy * allee jonge * shortcut check ipv6 prefixes * comment * separate httpclient_test, export Sanitizer
2023-07-07[bugfix] Reorder web view logic, other small fixes (#1954)Libravatar tobi9
2023-07-07[docs] Rework backups a bit (#1942)Libravatar Daenney5
* [docs] Rework backups a bit This changes the existing backup documentation to: * Push a bit harder on people to perform backups, it's not really just a nice to have * Removes the language about migrating to/from GoToSocial and a different ActivityPub server since that's really not supported * Adds a section about using backup software and provides an example on how to do this using Borgmatic * [docs] Remove too much info in db section * [docs] Add docs on how to backup local media This adds documentation pointing people at the media list-local command in order to determine what media files they need to include as part of their backups. Provides a Python script that people can use to transform the media listing from the CLI into Borg patterns. It also includes a Borgmatic config.yaml in the repository so people can easily fetch it instead of copy-pasting from the docs. * [bugfix] Ensure we emit an absolute path prefix It works either way, as a pattern like data/files/<ID> would match a file on /data/files/<ID>. But it would potentially also match any path that happens to include data/files/<ID> but not rooted at the storage-local-base-path. * [docs] Add more links to media list CLI reference
2023-07-07[feature] Add media list command (#1943)Libravatar Daenney3
* [feature] Add media list command This is an attempt to help alleviate #1776. Using admin media list --local the full path to each local media file will be printed, with a newline. The output of this should be feadable into backup tools in order to allow to backup local media too. Together with the database this should allow to fully recover from the loss of an instance. The list command also gets a --remote flag for symmetry. In the case of --remote we print the RemoteURL instead, the location the asset can be retrieved from. To get all media, you can run with --local and --remote. * [bugfix] Fix the test failures * [feature] Reimplement list media as top commands This changes the implementation of admin media list --<variant> to two separate top-level commands, list-local and list-remote. The implementation now iterates over over the database in batches of 200 in order to avoid loading all media metadata into memory. * [feature] Implement ListMedia with filter callback This does away with the somewhat odd iterator-like structure we had before and does away with most of the loop duplication in list-local and list-remote. Instead they call GetAllMediaPaths with a filter func to select the media they want. That's accumulated into a slice and eventually returned. * [bugfix] Simplify remote filter Since we don't append the empty string anywhere, the remote filter can be limited to returning RemoteURL, as that'll be an empty string for local media. * [docs] Add media list commands to CLI reference --------- Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2023-07-07[chore/bugfix] Domain block tidying up, Implement first pass of `207 ↵Libravatar tobi19
Multi-Status` (#1886) * [chore/refactor] update domain block processing * expose domain block import errors a lil better * move/remove unused query keys
2023-07-05[chore/performance] Remove remaining 'whereEmptyOrNull' funcs (#1946)Libravatar tobi6
2023-07-04[chore/bugfix] Break Websockets logic into smaller read/write functions, ↵Libravatar tobi2
don't log expected errors (#1932) * [chore/bugfix] Break Websockets logic into smaller read/write functions, don't log expected errors * tweak * tidy up, use control message
2023-07-04[feature] Add instance stats to /about (#1936)Libravatar Daenney1
When you configure the landing-page-user redirect, you lose access to the one page that displays server stats. This adds the same stats as we have on / to /about to bring those back.
2023-07-04[chore]: Bump github.com/minio/minio-go/v7 from 7.0.58 to 7.0.59 (#1941)Libravatar dependabot[bot]10
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.58 to 7.0.59. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.58...v7.0.59) --- 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-06-27[bugfix] Try to fix the webfinger test, again (#1931)Libravatar Daenney1
For some reason we hit the case in CI where the TestFingerWithHostMetaCacheStrategy seems to experience some time dilation. It's possible this is a genuine bug, but I can't for the life of me reproduce it locally, even after having run this test thousands of times (-count=1000 when invoking go test etc.) This changes the test to explicitly stop the webfinger cache, set TTL and Sweep frequency to something well beyond the lifetime of the cache during the test and then starts the cache again. Hopefully that does it, because the other option that remains is that for some reason timekeeping in CI/Docker is not as precise as when running the test on a host.
2023-06-27[bugfix] Use gtserror package for WrongType errs (#1930)Libravatar tobi11
* [bugfix] Use gtserror package for WrongType errs * test
2023-06-26[chore]: Bump github.com/minio/minio-go/v7 from 7.0.56 to 7.0.58 (#1928)Libravatar dependabot[bot]9
2023-06-26[chore]: Bump github.com/miekg/dns from 1.1.54 to 1.1.55 (#1929)Libravatar dependabot[bot]5
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.54 to 1.1.55. - [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release) - [Commits](https://github.com/miekg/dns/compare/v1.1.54...v1.1.55) --- updated-dependencies: - dependency-name: github.com/miekg/dns 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-06-26[chore]: Bump github.com/tdewolff/minify/v2 from 2.12.6 to 2.12.7 (#1927)Libravatar dependabot[bot]4
2023-06-26[chore]: Bump golang.org/x/image from 0.7.0 to 0.8.0 (#1926)Libravatar dependabot[bot]3
2023-06-24[bugfix] Only mark status orphaned on 410 Gone (#1923)Libravatar tobi1
2023-06-24[bugfix] Ensure `InReplyToID` set properly, update dereference ancestors ↵Libravatar tobi5
func (#1921)
2023-06-22[bugfix/chore] oauth entropy fix + media cleanup tasks rewrite (#1853)Libravatar kim38
2023-06-21[docs] Clarify email requirement for OIDC (#1918)Libravatar Daenney1
2023-06-21[performance] update go-cache library (#1917)Libravatar kim6
* update go-cache library Signed-off-by: kim <grufwub@gmail.com> * fix broken test after cache library upgrade Signed-off-by: kim <grufwub@gmail.com> * fix the webfinger test Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
2023-06-21[feature] Add partial text search for accounts + statuses (#1836)Libravatar tobi30
2023-06-20[docs] Disambiguate docker version, don't recommend opening localhost (#1913)Libravatar tobi1
2023-06-19[chore]: Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 (#1908)Libravatar dependabot[bot]3
2023-06-19[chore] Fix Swagger paths for lists API endpoints (#1904)Libravatar Umar Getagazov8
2023-06-19[bugfix] Parse POST-style forms in the list member removal endpoint (#1903)Libravatar Umar Getagazov1
2023-06-19[chore]: Bump github.com/jackc/pgx/v5 from 5.3.1 to 5.4.1 (#1907)Libravatar dependabot[bot]25
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.3.1 to 5.4.1. - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/compare/v5.3.1...v5.4.1) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 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-06-19[chore]: Bump golang.org/x/net from 0.10.0 to 0.11.0 (#1909)Libravatar dependabot[bot]8
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.11.0. - [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: golang.org/x/net 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-06-19[chore]: Bump golang.org/x/crypto from 0.9.0 to 0.10.0 (#1910)Libravatar dependabot[bot]29
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.10.0. - [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.10.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-06-17[chore/bugfix] Refactor `ap/extract.go` functions, return URIs more reliably ↵Libravatar tobi9
(#1897)
2023-06-16[bugfix] Accept non-multipart forms for account updates (#1896)Libravatar Umar Getagazov3
* [bugfix] Update Swagger schema per max_profile_fields addition * [bugfix] Accept non-multipart forms for account updates
2023-06-14[chore/bugfix] Demote failed inbox forwarding to warn log rather than error ↵Libravatar tobi1
return (#1892)
2023-06-13[chore] Refactor AP authentication, other small bits of tidying up (#1874)Libravatar tobi38