Vivian Lim ⭐
1c67aca87f
Merge 2cd5abfdcf
into ffa67ac1ae
2024-11-19 23:53:13 +01:00
kim
e3c2b790fd
[performance] minimise log field allocations ( #3529 )
...
* when appending log field only do so by minimal amount
* move slice utils to separate package to fix import cycle, add GrowJust() and AppendJust() functions
* fix GrowJust() not returning slice of same length
* improved xslices tests
* make AppendJust() test check for slice contents, fix AppendJust() final copying behaviour
* add a +1 with field growth to try minimise allocation for log 'msg' field
2024-11-11 15:45:19 +00:00
kim
b84637801a
[chore] update go ffmpreg to v0.6.0 ( #3515 )
...
* pull in go-ffmpreg v0.6.0
* add code comment
* grrr linter
* set empty module name when calling ffmpeg / ffprobe
2024-11-06 14:38:13 +01:00
kim
6f4cb2f14e
[bugfix] sets the max value placeholders to MaxInt32 instead of MaxInt ( #3517 )
...
* sets the max value placeholders to MaxInt32 instead of MaxInt
* update tests
2024-11-05 22:16:06 +00:00
tobi
e953d80dff
[bugfix] Fix setting immediate expires_at
value on filter endpoints ( #3513 )
...
* [bugfix] Fix setting immediate `expires_at` value on filter endpoints
* update wording
* update wording
* oh my
2024-11-05 13:29:51 +01:00
kim
53aaeb18d4
previously we were using the ffmpeg runner for ffprobe 🤦 ( #3512 )
2024-11-05 10:50:56 +00:00
kim
f3b2eca8b8
[feature] add support for hinting via api/v_/instance preferred image / video max sizes ( #3505 )
...
* add support for hinting via api/v_/instance endpoints a preferred image / video size limit
* fix tests expecting old default values
2024-11-04 15:00:10 +01:00
kim
8f288f1689
[bugfix] determine mime-type to use during ffprobe evaluation stage, don't bother checking against file extension ( #3506 )
...
* determine mime-type to use during ffprobe evaluation stage, don't bother rechecking by file extension
* set mjpeg content-type
* fix up tests expecting differing default values
2024-11-04 14:58:15 +01:00
kim
7ec6509e11
[bugfix] support classifying correct video codec without audio as webm ( #3494 )
...
* for webm support video:[vp8,vp9,av1] and audio:[NONE,vorbis,opus]
* improved unsupported data type error output
2024-10-28 14:09:21 +01:00
kim
e86592bc32
[chore] pull in go-ffmpreg v0.4.1 ( #3485 )
...
* pull in go-ffmpreg v0.4.1
* bring back GTS_WAZERO_COMPILATION_CACHE
2024-10-28 10:55:48 +00:00
kim
d8a83860bc
[bugfix] incorrect /api/v_/instance domain uri fields ( #3477 )
...
* update instance v1 / v2 endpoints to set uri / domain correctly (i.e. account domain)
* fix tests relying on old instance behaviour
2024-10-22 14:47:28 +00:00
tobi
8a93300ac4
[feature] Add image descriptions for default avatar + header; don't allow editing default desc ( #3473 )
2024-10-21 14:04:50 +02:00
tobi
fab7d17031
[bugfix] Fix filter title unique constraint ( #3458 )
2024-10-19 11:04:07 +02:00
tobi
0d0314b98d
[chore] Fix loop issue in streaming 🤦 ( #3457 )
2024-10-18 16:57:50 +02:00
tobi
602c858379
[chore] Thumbnail only first frame of animated media ( #3448 )
2024-10-18 15:44:08 +02:00
tobi
ffc86f9092
[bugfix] Fix occasionally streaming empty messages ( #3456 )
2024-10-18 15:43:09 +02:00
Markus Unterwaditzer
a48cce82b9
[chore] Upgrade golangci-lint, ignore existing int overflow warnings ( #3420 )
...
* [chore] Bump tooling versions, bump go -> v1.23.0
* undo silly change
* sign
* bump go version in go.mod
* allow overflow in imaging
* goreleaser deprecation notices
* [chore] Upgrade golangci-lint, ignore existing int overflow warnings
There is a new lint for unchecked int casts. Integer overflows are bad,
but the old code that triggers this lint seems to be perfectly fine.
Instead of disabling the lint entirely for new code as well, grandfather
in existing code.
* fix golangci-lint documentation link
* revert unrelated changes
* revert another unrelated change
* get rid of remaining nolint:gosec
* swagger updates
* apply review feedback
* fix wrong formatting specifier thing
* fix the linter for real
---------
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-10-16 14:13:58 +02:00
kim
3ad49f7718
updates exported interface types to match ncruces/go-sqlite3/driver methods ( #3440 )
2024-10-14 20:28:59 +00:00
kim
6a76b9d609
[feature/OFFICIALLY UNSUPPORTED] add nowasm build tag to disable building with WebAssembly ( #3429 )
...
* add experimental build-tag 'nowasm' which uses local ffmpeg / ffprobe
* updated experimental support message
* add comment to build script explaining build tag
* add nowasm build tags to moderncsqlite files
2024-10-14 11:59:12 +02:00
kim
2076f7d85f
[feature] for an sqlite database with journal mode != WAL, use maximum of 1 open conn ( #3428 )
2024-10-14 00:19:52 +02:00
Markus Unterwaditzer
95a316236e
[bugfix] Account.last_status_at is a date, not datetime ( #3419 )
...
* [bugfix] Account.last_status_at is a date, not datetime
Fix #3418
* update swagger
2024-10-12 10:02:26 +02:00
tobi
77d755e330
[chore] Don't cc Accept of likes to followers ( #3417 )
2024-10-11 15:22:05 +02:00
tobi
1c895f314c
[bugfix] Check interaction policies properly on incoming Likes ( #3416 )
2024-10-11 15:21:56 +02:00
tobi
cb9008fb41
[bugfix] Ensure pending_approval
set on statuses + status faves ( #3415 )
...
* [bugfix] Ensure pending_approval set on statuses + status faves
* set PendingApproval on boosts
* assume not pending approval
2024-10-11 15:21:45 +02:00
tobi
a69142a403
[bugfix/frontend] Don't show replies to hidden parents; return 404 if no "main" thread ( #3411 )
2024-10-09 12:33:53 +02:00
tobi
e8fd40f3ca
[bugfix] Fix replies not being stored pending approval ( #3409 )
2024-10-09 11:02:10 +02:00
tobi
1e421cb912
[feature] Distribute + ingest Accepts to followers ( #3404 )
2024-10-08 08:51:13 +00:00
kim
bd1866ad8a
update go-ffmpreg to v0.3.1 (pulls in latest wazero too) ( #3398 )
2024-10-06 20:53:03 +00:00
tobi
c023bd30f3
[bugfix] Only allow boosting post from non-interaction-policy-aware instance if public or unlisted ( #3396 )
2024-10-05 19:15:02 +02:00
tobi
18e2f69e85
[bugfix] Return 501 (not implemented) if user tries to schedule post ( #3395 )
2024-10-05 19:14:53 +02:00
tobi
f0376635ad
[chore] Change order of error checking after PostInbox ( #3394 )
...
Check for malformed errors embedded inside error *first*, then check for gtserror.WithCode.
2024-10-05 17:08:42 +02:00
tobi
c33b1e89c1
[bugfix] Update select of pending interaction requests to account for potential nil URI ( #3392 )
2024-10-05 12:27:53 +02:00
tobi
37a3d224a7
[bugfix] Account for nil reply when serializing int req ( #3389 )
2024-10-05 11:36:01 +02:00
tobi
d3d6e3f920
[bugfix] Don't try to add nil filtered statuses to context ( #3388 )
2024-10-04 19:23:18 +02:00
tobi
8bd8c6fb45
[bugfix] Include own account in conversation when no other accounts involved ( #3387 )
2024-10-04 19:22:52 +02:00
kim
f550f596fa
[performance] remove the pragma optimize analysis limit on connection close ( #3386 )
2024-10-04 19:05:42 +02:00
vivlim
2cd5abfdcf
Add login button to index page which reiterates info about clients
2024-09-29 21:06:13 -07:00
tobi
43e443f9f3
[bugfix] Carry-over "PinnedAt" when refreshing status ( #3373 )
2024-09-29 14:46:52 +02:00
kim
095663f5cc
[bugfix] visibility after implicit approval not getting invalidated ( #3370 )
...
* 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 22:47:46 +02:00
kim
18b7e00fef
[chore] use string formatting package agnostic way of printing request attempts ptr ( #3371 )
2024-09-28 22:47:27 +02:00
kim
6f3583559f
[bugfix] better handle ogg container format ( #3365 )
2024-09-27 13:16:34 +02:00
kim
497ebd8c4e
[bugfix] fix media limit reader check ( #3363 )
...
* return nicer errors for frontend when media / emoji upload limit reached
* fix reader limit check
* add code comment
2024-09-27 13:15:53 +02:00
kim
58af95a1d5
[chore] bump go-byteutil v1.2.0 -> v1.3.0 ( #3356 )
...
* 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 19:50:08 +00:00
kim
53ee6aef08
[bugfix] s3 media uploaded without content-type ( #3353 )
...
* 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 14:43:10 +02:00
kim
b0fbc327f0
[chore] reduce number admin process workers ( #3354 )
2024-09-26 09:40:49 +02:00
tobi
713e73300c
[bugfix] Fix incorrect reply shown in interaction request ( #3344 )
2024-09-24 17:28:46 +00:00
kim
dc4059e9a2
[bugfix] add support for media with rotation contained in stream side data ( #3335 )
...
* add support for media with embedded rotation data in stream side data list
* *grumble grumble* linter
2024-09-23 15:13:01 +00:00
tobi
5bd6ad68e6
[bugfix/email] Don't use plainAuth when no smtp username/password provided ( #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 16:07:13 +02:00
tobi
1ce854358d
[feature] Show info for pending replies, allow implicit accept of pending replies ( #3322 )
...
* [feature] Allow implicit accept of pending replies
* update wording
2024-09-23 14:42:19 +02:00
kim
2f13b72e2e
[chore] add nometrics build tagging to metrics API endpoint ( #3331 )
...
* add nometrics API endpoint code, to ensure prometheus NEVER compiled in unless wanted
* whoops, fix build tagging
2024-09-23 12:01:12 +00:00