summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2024-06-23[feature/frontend] Rain Forest Theme (#3021)Libravatar ghose1
* Create sweet-home.css new green-ish theme * Rain Forest theme v1 changes since *draft* version: * lighter green for links (better contrast ratio) * higher «show more/less» button contrast * post's border thinner and darker (papaya) * lighter "glow" (shadow) * button has not shadow * polls themed (dark blues) * papaya scrollbar * code box border thinner (not rounded) * accesibility tested in firefox dev options (no issues) * release ready v1.0 * Rename rain-forest.css to rain-forest.css delete "theme" folder and move to "themes"
2024-06-23[chore] Update our robots.txt (#3033)Libravatar Daenney1
This syncs our copy with the current state of the ai.robots.txt repository. Upstream has tightened their scope to be AI-only, whereas before it included a bunch of SEO and "web intelligence" marketing stuff. I've kept those but moved them into their own section.
2024-06-22[bugfix] add Date and Message-ID headers for email (#3031)Libravatar Julian4
* [bugfix] add Date and Message-ID headers for email This should make spam filters more happy, as most of them grant some negative score for not having those headers. Also the Date is convenient for the user receiving the mail. * make golangci-lint happy
2024-06-22[chore] update github.com/ncruces/go-sqlite3 -> v0.16.3 (#3029)Libravatar kim13
2024-06-21update remaining gruf libraries relying on linkname (#3028)Libravatar kim5
2024-06-21updates go-mutexes to no longer rely on unsafe linkname (#3027)Libravatar kim19
2024-06-21[chore] update go-structr and go-mangler to no longer rely on ↵Libravatar kim15
modern-go/reflect2 (#3026) * updates go-structr and go-mangler to no longer rely on modern-go/reflect2 (*phew* now we're go1.23 safe) * update go-structr version * bump go-structr to improve memory usage (v. slightly) in certain conditions
2024-06-20[feature] add worker task serialization logic (#2989)Libravatar kim31
* improved server shutdown with more precise shutdown of modules + deferring of ALL of it * move delivery and workers into separate files * add worker task model and Serialize() / Deserialize() methods for message types * start adding message serialize / deserialize tests * start adding test cases * update body rewinding to rely on standard library mechanism of r.GetBody() * remove request rewinding (http.Client{} should already handle this) * standard library already handles rewinding * improved code comment * move the newPOST() function contents to prepare(), fits better with current API * add Serialize() / Deserialize() implementations for Delivery{} type * finish writing FromClientAPI sserialize / deserialize tests * start adding FromFediAPI{} serialize / deserialize test cases * fix FromFediAPI{} tests * add tests for delivery message type * fix repeat code * missing license header * use testrig status and accounts for marshal / unmarshaling tests * add a specific test for checking account RSA keys are preserved
2024-06-18[bugfix] rename `include_types[]` to `types[]` (#3023)Libravatar tobi6
2024-06-18[feature/frontend] Reports frontend v2 (#3022)Libravatar tobi56
* use apiutil + paging in admin processor+handlers * we're making it happen * fix little whoopsie * styling for report list * don't youuuu forget about meee don't don't don't don't * last bits * sanitize content before showing in report statuses * update report docs
2024-06-17[feature] Implement types[] param for notifications (#3009)Libravatar Vyr Cossont10
Counterpart of exclude_types[]. Also updates Swagger spec for types[] to use the correct param name and enumerate possible values. Fixes #3003
2024-06-17[chore]: Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#3016)Libravatar dependabot[bot]12
2024-06-17[chore]: Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#3015)Libravatar dependabot[bot]3
2024-06-17[chore]: Bump github.com/miekg/dns from 1.1.59 to 1.1.61 (#3014)Libravatar dependabot[bot]17
2024-06-17[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.33 to 2.20.34 (#3017)Libravatar dependabot[bot]10
2024-06-17[chore]: Bump github.com/yuin/goldmark from 1.7.1 to 1.7.2 (#3018)Libravatar dependabot[bot]9
2024-06-16[docs] Update roadmap (#3011)v0.16.0Libravatar tobi1
2024-06-14[bugfix] avoid v. long notification clear query (#3007)v0.16.0-rc3Libravatar tobi2
2024-06-14[feature] filter API v2: Restore keywords_attributes and statuses_attributes ↵Libravatar Vyr Cossont8
(#2995) These filter API v2 features were cut late in development because the form encoding version is hard to implement correctly and because I thought no clients actually used `keywords_attributes`. Unfortunately, Phanpy does use `keywords_attributes`.
2024-06-13[docs] Rework README a bit, import into docs (#3006)Libravatar tobi6
2024-06-13[chore] Silence memlimit package (#3002)Libravatar Daenney1
The memlimit package started to log any error returned by automemlimit. This updates our implementation to call SetGoMemLimitWithOpts() instead which uses the same defaults as automemlimit except for being initialised with a noop logger. We check the returned error for a particular substring, as when cgroups isn't available even when running on a Linux system that's not a problem. If it's anything but that error, we log it at the warning level so that admins can still diagnose other cgroup related issues. Fixes #2983 Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2024-06-13[docs] Add optional instructions for replicating SQLite for disaster ↵Libravatar Martijn de Boer4
recovery (#2981) * Add optional instructions for replicating SQLite for disaster recovery * Remove references to MacOS from replicating-sqlite.md Resolve comment on review * Add mention for replicating SQLite in database_maintenance.md Adds a reference to the replicating sqlite page under database maintenance
2024-06-13[chore] Update move test (#3005)Libravatar tobi1
2024-06-12[chore] Don't render sign-up form when registrations closed (#3001)Libravatar tobi2
2024-06-12Bump braces from 3.0.2 to 3.0.3 in /web/source (#2999)Libravatar dependabot[bot]1
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12[bugfix] Ensure side effects handled for local unlocked follows (#2998)Libravatar tobi2
2024-06-12[chore] Upgrade wasm-sqlite to v0.16.2 (#2997)Libravatar Daenney55
2024-06-12[bugfix] Correct Swagger path for poll voting (#2996)Libravatar Vyr Cossont2
Updates the Swagger spec to match the router. Fixes #2994
2024-06-11[bugfix] Deref stats async, serve stub collections if handshaking (#2990)v0.16.0-rc2Libravatar tobi14
* [bugfix] Deref stats async, allow peek if handshaking * don't return totalItems when handshaking or hiding collections * use GetLimit() * use StubAccountStats
2024-06-10[bugfix] boost and account recursion (#2982)Libravatar kim7
* fix possible infinite recursion if moved accounts are self-referential * adds a defensive check for a boost being a boost of a boost wrapper * add checks on input for a boost of a boost * remove unnecessary check * add protections on account move to prevent move recursion loops * separate status conversion without boost logic into separate function to remove risk of recursion * move boost check to boost function itself * formatting * use error 422 instead of 500 * use gtserror not standard errors package for error creation
2024-06-10[chore] Roll back use of `(created)` pseudo-header pending #2991 (#2992)Libravatar tobi2
2024-06-10[chore]: Bump golang.org/x/image from 0.16.0 to 0.17.0 (#2985)Libravatar dependabot[bot]3
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.16.0 to 0.17.0. - [Commits](https://github.com/golang/image/compare/v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/image 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>
2024-06-10[chore]: Bump github.com/gorilla/websocket from 1.5.1 to 1.5.2 (#2987)Libravatar dependabot[bot]15
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.1 to 1.5.2. - [Release notes](https://github.com/gorilla/websocket/releases) - [Commits](https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.2) --- updated-dependencies: - dependency-name: github.com/gorilla/websocket 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-06-10[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.32 to 2.20.33 (#2984)Libravatar dependabot[bot]4
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.32 to 2.20.33. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.20.32...v2.20.33) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 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-06-10[chore]: Bump golang.org/x/net from 0.25.0 to 0.26.0 (#2986)Libravatar dependabot[bot]10
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.25.0 to 0.26.0. - [Commits](https://github.com/golang/net/compare/v0.25.0...v0.26.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>
2024-06-10[chore]: Bump github.com/minio/minio-go/v7 from 7.0.70 to 7.0.71 (#2988)Libravatar dependabot[bot]8
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.70 to 7.0.71. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.70...v7.0.71) --- 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>
2024-06-08[bugfix] Use re2 syntax for regex validation (#2978)v0.16.0-rc1Libravatar tobi4
2024-06-07[chore] Warn about email/password change when using OIDC (#2975)Libravatar tobi9
* [chore] Warn about email/password change when using OIDC * go fmt
2024-06-07[chore] Update WASM go-sqlite3 to v0.16.1 (#2976)Libravatar Daenney46
This includes support for journal mode set to WAL on the BSDs. Relates to: #1753, #2962
2024-06-07[feature] Implement filters_changed stream event (#2972)Libravatar Vyr Cossont31
2024-06-06[bugfix] Filter fixes (#2971)Libravatar Vyr Cossont12
* Add Filter.Expired convenience method, consistent with mutes * Add missing Swagger for filter keyword/status delete and for 403s on moved accounts
2024-06-06[feature] User muting (#2960)Libravatar Vyr Cossont47
* User muting * Address review feedback * Rename uniqueness constraint on user_mutes to match convention * Remove unused account_id from where clause * Add UserMute to NewTestDB * Update test/envparsing.sh with new and fixed cache stuff * Address tobi's review comments * Make compiledUserMuteListEntry.expired consistent with UserMute.Expired * Make sure mute_expires_at is serialized as an explicit null for indefinite mutes --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-06-06[bugfix] update media if more than just url changes (#2970)Libravatar kim3
* refactor status media handling into separate functions, handle case of changed metadata * update fetchRemoteAccount{Avatar,Header} to use new refactored {load,update}Attachment() functions * whoops, nearly marked avatars as headers :') * reformatting to improve legibility
2024-06-06[feature] Self-serve email change for users (#2957)Libravatar tobi50
* [feature] Email change * frontend stuff for changing email * docs * tests etc * differentiate more clearly between local user+account and account * populate user
2024-06-06drop date (#2969)Libravatar tobi2
2024-06-06[feature] do not uncache status / emoji media if attached status is ↵Libravatar kim17
bookmarked (#2956) * do not uncache status / emoji media if attached status is bookmarked * add status bookmark and bookmark IDs caches * update status bookmark tests * move IsStatusBookmarkedBy() to StatusBookmark{} interface, rely on cache * fix envparsing.sh test
2024-06-06[bugfix] Don't nil emojis + fields on blocked accounts (#2968)Libravatar tobi4
* [bugfix] Don't nil emojis + fields on blocked accounts * comment * swagger
2024-06-06[bugfix] concurrent map writes in dereferencer media processing maps (#2964)Libravatar kim4
* removes the avatar / header deref maps as we now have per-uri status / account locks, adds retries on data-races, adds separate emoji map mutex * work with a copy of account / status for each retry loop * revert to old data race behaviour, it gets too complicated otherwise --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-06-05[chore] Fiddle with CI tests; use wasmsqlite3 for CI tests (#2966)Libravatar tobi2
* [chore] Update CI test stuff * don't bother with ldflags * use wasmsqlite3
2024-06-04Compile filter keyword regexps when touched through PutFilter or ↵Libravatar Vyr Cossont1
UpdateFilter (#2951) Followup to #2903