summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)AuthorFiles
2024-10-12[bugfix] Account.last_status_at is a date, not datetime (#3419)Libravatar Markus Unterwaditzer15
* [bugfix] Account.last_status_at is a date, not datetime Fix #3418 * update swagger
2024-10-11[chore] Don't cc Accept of likes to followers (#3417)v0.17.0-rc4Libravatar tobi2
2024-10-11[bugfix] Check interaction policies properly on incoming Likes (#3416)Libravatar tobi2
2024-10-11[bugfix] Ensure `pending_approval` set on statuses + status faves (#3415)Libravatar tobi4
* [bugfix] Ensure pending_approval set on statuses + status faves * set PendingApproval on boosts * assume not pending approval
2024-10-09[bugfix/frontend] Don't show replies to hidden parents; return 404 if no ↵v0.17.0-rc3Libravatar tobi1
"main" thread (#3411)
2024-10-09[bugfix] Fix replies not being stored pending approval (#3409)Libravatar tobi1
2024-10-08[feature] Distribute + ingest Accepts to followers (#3404)Libravatar tobi8
2024-10-06update go-ffmpreg to v0.3.1 (pulls in latest wazero too) (#3398)Libravatar kim2
2024-10-05[bugfix] Only allow boosting post from non-interaction-policy-aware instance ↵Libravatar tobi1
if public or unlisted (#3396)
2024-10-05[bugfix] Return 501 (not implemented) if user tries to schedule post (#3395)Libravatar tobi3
2024-10-05[chore] Change order of error checking after PostInbox (#3394)Libravatar tobi1
Check for malformed errors embedded inside error *first*, then check for gtserror.WithCode.
2024-10-05[bugfix] Update select of pending interaction requests to account for ↵Libravatar tobi2
potential nil URI (#3392)
2024-10-05[bugfix] Account for nil reply when serializing int req (#3389)Libravatar tobi1
2024-10-04[bugfix] Don't try to add nil filtered statuses to context (#3388)Libravatar tobi1
2024-10-04[bugfix] Include own account in conversation when no other accounts involved ↵Libravatar tobi3
(#3387)
2024-10-04[performance] remove the pragma optimize analysis limit on connection close ↵Libravatar kim1
(#3386)
2024-09-29[bugfix] Carry-over "PinnedAt" when refreshing status (#3373)Libravatar tobi1
2024-09-28[bugfix] visibility after implicit approval not getting invalidated (#3370)Libravatar kim9
* replicate issue * update go-structr to v0.8.10 with internal linked-list fix, small tweaks to caching of interaction requests * remove debug function --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-09-28[chore] use string formatting package agnostic way of printing request ↵Libravatar kim1
attempts ptr (#3371)
2024-09-27[bugfix] better handle ogg container format (#3365)Libravatar kim1
2024-09-27[bugfix] fix media limit reader check (#3363)Libravatar kim3
* return nicer errors for frontend when media / emoji upload limit reached * fix reader limit check * add code comment
2024-09-26[chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356)Libravatar kim1
* bump go-byteutil v1.2.0 -> v1.3.0 which has safer (as in long-term API consistency) byte <-> string conversions * fix test relying on byteutil exported type no longer existing
2024-09-26[bugfix] s3 media uploaded without content-type (#3353)Libravatar kim3
* update go-storage dependency, for S3Storage manually call PutObject() so we can set content-type * update calls to PutFile() to include the contentType
2024-09-26[chore] reduce number admin process workers (#3354)Libravatar kim1
2024-09-24[bugfix] Fix incorrect reply shown in interaction request (#3344)Libravatar tobi3
2024-09-23[bugfix] add support for media with rotation contained in stream side data ↵Libravatar kim1
(#3335) * add support for media with embedded rotation data in stream side data list * *grumble grumble* linter
2024-09-23[bugfix/email] Don't use plainAuth when no smtp username/password provided ↵Libravatar tobi1
(#3332) * Do not use plainAuth when no user or password. Fixes #3320 * formatting --------- Co-authored-by: Yonas Yanfa <yonas.y@gmail.com>
2024-09-23[feature] Show info for pending replies, allow implicit accept of pending ↵Libravatar tobi14
replies (#3322) * [feature] Allow implicit accept of pending replies * update wording
2024-09-23[chore] add nometrics build tagging to metrics API endpoint (#3331)Libravatar kim2
* add nometrics API endpoint code, to ensure prometheus NEVER compiled in unless wanted * whoops, fix build tagging
2024-09-23[chore] local instance count query caching, improved status context endpoint ↵Libravatar kim9
logging, don't log ErrHideStatus when timelining (#3330) * ensure that errors checking status visibility / converting aren't dropped * add some more context to error messages * include calling function name in log entries * don't error on timelining hidden status * further code to ignore statusfilter.ErrHideStatus type errors * remove unused error type * add local instance status / domain / user counts * add checks for localhost * rename from InstanceCounts to LocalInstance * improved code comment
2024-09-23[chore] header filter improvements (#3329)Libravatar kim1
* add error message to gin context on header blocked or not allowed * remove the unused header filter tracking code (leaving OTEL TODOs in place) * appease the linter
2024-09-20[chore] ensure consistent caller name fetching regardless of compiler ↵Libravatar kim10
inlining (#3323) * move logging levels into log package itself * ensure inconsistent inlining doesn't mess with log calling function name * remove unused global variable * fix log level
2024-09-18[feature] Allow users to submit `interaction_policy` on new statuses (#3314)Libravatar tobi5
* [feature] Parse `interaction_policy` on status submission * beep boop * swagger? i barely know er
2024-09-18[chore] make csv export ordering determinate (#3318)Libravatar tobi2
2024-09-17[chore] improved federatingdb logging in cases of unknown iri / types (#3313)Libravatar kim13
* improved federatingdb logging in cases of unknown iri / types, add new log methods * whoops; forgot to wrap log argument in serialize{} ! * use debug instead of warn level * switch last entry to Debug
2024-09-17[bugfix] Fix pending approval check (#3316)Libravatar tobi1
2024-09-17[bugfix] Fix incorrect policy value parsing (#3315)Libravatar tobi1
2024-09-16[bugfix] Ensure id set on outgoing Reject + Accept (#3312)Libravatar tobi2
2024-09-16[bugfix] Be more lenient when parsing mastodown following.csv (#3311)Libravatar tobi3
* [bugfix] Be more lenient when parsing mastodown following.csv * use follow.Notify
2024-09-16[performance] cache more database calls, reduce required database calls ↵Libravatar kim61
overall (#3290) * improvements to caching for lists and relationship to accounts / follows * fix nil panic in AddToList() * ensure list related caches are correctly invalidated * ensure returned ID lists are ordered correctly * bump go-structr to v0.8.9 (returns early if zero uncached keys to be loaded) * remove zero checks in uncached key load functions (go-structr now handles this) * fix issues after rebase on upstream/main * update the expected return order of CSV exports (since list entries are now down by entry creation date) * rename some funcs, allow deleting list entries for multiple follow IDs at a time, fix up more tests * use returning statements on delete to get cache invalidation info * fixes to recent database delete changes * fix broken list entries delete sql * remove unused db function * update remainder of delete functions to behave in similar way, some other small tweaks * fix delete user sql, allow returning on err no entries * uncomment + fix list database tests * update remaining list tests * update envparsing test * add comments to each specific key being invalidated * add more cache invalidation explanatory comments * whoops; actually delete poll votes from database in the DeletePollByID() func * remove added but-commented-out field * improved comment regarding paging being disabled * make cache invalidation comments match what's actually happening * fix up delete query comments to match what is happening * rename function to read a bit better * don't use ErrNoEntries on delete when not needed (it's only needed for a RETURNING call) * update function name in test * move list exclusivity check to AFTER eligibility check. use log.Panic() instead of panic() * use the poll_id column in poll_votes for selecting votes in poll ID * fix function name
2024-09-16[chore] Refactor federatingDB.Undo, avoid 500 errors on Undo Like (#3310)Libravatar tobi3
2024-09-16[chore] Reject replies to rejected replies (#3291)Libravatar tobi2
* [chore] Reject replies to rejected replies * tweak * don't set URI for implicit Rejects
2024-09-16[bugfix] Use better plaintext representation of status for filtering (#3301)Libravatar tobi6
* [bugfix] Use better plaintext representation of status for filtering * add new deps to readme * lint * update tests * update regexes * address review comments * remove now unused xxhash * whoops, wrong logger * Merge branch 'main' into status_filtering_bugfix * put cache in caches struct * pain
2024-09-16[bugfix/chore] Always set the status sensitive if media + content-warning ↵Libravatar kim1
present (#3308) * always set the status sensitive flag to true if it has a content-warning with media * whoops use attachment ids instead of mention ids ... :facepalm:
2024-09-15[bugfix] Hoist filterable text field extraction out of loop (#3297)Libravatar Vyr Cossont1
This doesn't change within the loop, so there's no point in repeating it.
2024-09-14[chore] Update go-sqlite3 to 0.18.3 (#3295)Libravatar Daenney1
* [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn
2024-09-11[bugfix] Update home timeline query to ignore exclusive list entries (#3289)Libravatar tobi2
* [bugfix] Update home timeline query to ignore exclusive list entries * a
2024-09-10[feature] Process `Reject` of interaction via fedi API, put rejected ↵Libravatar tobi20
statuses in the "sin bin" 😈 (#3271) * [feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin" * update test * move nil check back to `rejectStatusIRI`
2024-09-10[chore] status dereferencing improvements (#3255)Libravatar kim4
* search for mentions also by username,domain in status deref, handle deleted statuses in enrichStatusSafely() * return d.enrichStatusSafely() directly
2024-09-09[feature] Implement exclusive lists (#3280)Libravatar Vyr Cossont13
Fixes #2616