Commit graph

1,298 commits

Author SHA1 Message Date
kim
ff24ce95ff code comment 2024-12-05 13:10:26 +00:00
kim
148bc121cc slight formatting tweak 2024-12-05 13:08:54 +00:00
kim
534792467d properly handle media description changes during status edits 2024-12-05 13:05:19 +00:00
kim
9f51f1d3db add more code comments 2024-12-04 00:20:32 +00:00
kim
436363cd09 fix more serialization tests ... 2024-12-04 00:13:19 +00:00
kim
bcfa9af8a5 ensure that status.updated_at always fits chronologically 2024-12-03 23:57:36 +00:00
kim
8edb57a782 remove the choice of paging on the timeline public filtered test (otherwise it needs updating every time you add statuses ...) 2024-12-03 16:06:21 +00:00
kim
db3f6687ed add edited_at field to apimodel status 2024-12-03 15:53:23 +00:00
kim
8bee4508a5 grrr linter 2024-12-03 15:34:33 +00:00
kim
880dd899a1 fix status edit test 2024-12-03 15:25:56 +00:00
kim
6b4f12283f more test fixing, ensure the edit.status_id field is actually set 🤦 2024-12-03 15:25:56 +00:00
kim
9a01b647da more serialization test fixing 🥲 2024-12-03 15:25:56 +00:00
kim
7635a0d133 undo some gtscontext wrapping changes 2024-12-03 15:25:56 +00:00
kim
9f7a84f9f3 gah!! json serialization tests!! 2024-12-03 15:25:55 +00:00
kim
0c0780d4a4 update more status serialization tests not expecting 'updated' AS property 2024-12-03 15:25:55 +00:00
kim
34fe804242 fix up more tests, further complete the dereferencer status edit tests 2024-12-03 15:25:55 +00:00
kim
736d45db7f remove media_attachments.updated_at column 2024-12-03 15:25:55 +00:00
kim
d1db703e5b flesh out more of the dereferencer status edit tests, ensure updated at field set on outgoing AS statuses 2024-12-03 15:25:55 +00:00
kim
f4f5e8b5aa don't automatically set updated_at field on updated statuses 2024-12-03 15:25:55 +00:00
kim
ca809d8cc0 add test for deleting status edits 2024-12-03 15:25:55 +00:00
kim
c913f604bf fix panic wording 2024-12-03 15:25:55 +00:00
kim
4dd9c00cac fix tests now new models are added, add more status edit DB tests 2024-12-03 15:25:55 +00:00
kim
f9a393d6ab actually remove the Mention.UpdatedAt field... 2024-12-03 15:25:55 +00:00
kim
0c808ecb8d use model instead of table name 2024-12-03 15:25:55 +00:00
kim
bb862b54bd fix new statusedits sql 2024-12-03 15:25:55 +00:00
kim
63ddeb0879 add StatusEdit{} test models 2024-12-03 15:25:55 +00:00
kim
aa7191eb52 remove unused function 2024-12-03 15:25:55 +00:00
kim
305c50b037 add more of status edit migrations, fill in more of the necessary edit delete functionality 2024-12-03 15:25:55 +00:00
kim
20e20feae0 start adding tests, add delete function for status edits 2024-12-03 15:25:55 +00:00
kim
cf707893cc add migration to add the StatusEdit{} table 2024-12-03 15:25:55 +00:00
kim
3f89258660 add migration to remove Mention{}.UpdatedAt field 2024-12-03 15:25:55 +00:00
kim
80cc0b165c remove mention.UpdatedAt, fixes related to NewULIDFromTime() change 2024-12-03 15:25:55 +00:00
kim
a449781152 update new mention creation to use status.UpdatedAt 2024-12-03 15:25:55 +00:00
kim
3c90e2dd76 remove unused AdditionalEmojiInfo{}.CreatedAt 2024-12-03 15:25:55 +00:00
kim
681927fa34 remove unused AdditionalInfo{}.CreatedAt 2024-12-03 15:25:55 +00:00
kim
3e131f5da6 add support for status edits in the database, and update status dereferencer to handle them 2024-12-03 15:25:55 +00:00
kim
fc8d3742c9 add support for extracting Updated field from Statusable implementers 2024-12-03 15:25:55 +00:00
CDN
732b03a742
[bugfix] Load instance-wide custom css unconditionally in thread details page (#3595) 2024-12-03 15:21:47 +01:00
Victor Dyotte
9609c4550d
[feature] Add global instance CSS customization setting (#3352)
Allow instance admins to add custom CSS that will affect
every page of their instance.

This is done with a new CustomCSS instance setting that
works pretty much exactly like the Users CustomCSS property.
This custom CSS is then requested for every page load.
User styles/themes take precedence over this CSS.

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-12-02 12:24:48 +01:00
kim
c9d36f7e45
[performance] use new instance of bun.DB *after* migrations to reduce number of in-memory model schema (#3578)
* use new instance of bun.DB *after* migrations to reduce number of model schema in-memory

* update sqlite address comment
2024-11-29 15:03:10 +00:00
kim
d9f67efae5
send out poll votes as separate create activities given that no other AP servers support multiple objects in a single activity (#3582) 2024-11-28 15:37:37 +00:00
kim
312cb8b9c7
[chore] rename New___(string) int signature functions to Parse___(string) int (#3580)
* rename New___(string) int {} signature functions to Parse___(string) int {}

* remove test output
2024-11-28 12:54:22 +01:00
tobi
65917f5bb9
[bugfix] Log + ignore unknown notification types (#3577)
* [bugfix] Log + ignore unknown notification types

* pass context to ParseNotificationTypes
2024-11-27 17:22:45 +00:00
Vyr Cossont
6a8af42647
[bugfix] Allow unsetting filter expiration dates (#3560)
* Regression tests for #3497 (v1 and v2)
* use Nullable type for v2 form.expires_in

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-11-26 08:23:00 -08:00
kim
a444adee97
[bugfix] notification types missing from link header (#3571)
* ensure notification types get included in link header query for notifications

* fix type query keys
2024-11-25 15:33:21 +00:00
tobi
c454b1b488
[chore] Bump tooling versions, bump go -> v1.23.0 (#3258)
* [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

* bump versions

* undo accidental rebase change

* update container versions to just use latest major version

* update swagger to our release with go1.23 fix

* update goreleaser to use our vendored swagger version

---------

Co-authored-by: kim <grufwub@gmail.com>
2024-11-25 16:15:33 +01:00
kim
cac9d65029
[performance] convert enum strings to ints (#3558)
* convert statuses.visibility and notifications.notification_type columns from type string -> int for performance / space savings

* fix test trying to compare string to int

* fix instance count query using string literal instead of gtsmodel const type

* ensure a default value is always set

* also migrate the account settings and sin bin status tables

* initialize maps outside loops and place into singular enum mapping creation func

* use int16 for enum types

* update sinbinstatus creation to be from a snapshot at initial creation

* add snapshot of poll type at creation time
2024-11-25 14:48:59 +01:00
tobi
301543616b
[feature] Add domain permission drafts and excludes (#3547)
* [feature] Add domain permission drafts and excludes

* fix typescript complaining

* lint

* make filenames more consistent

* test own domain excluded
2024-11-21 13:09:58 +00:00
tobi
c2029df9bc
[feature] Allow emoji shortcode to be 1-character length (#3556)
* [feature] Allow emoji shortcode to be 1-character length

* testerino fixeroni

* spaghet
2024-11-21 12:13:55 +01:00
Jannis
9ace025da1
[bugfix] post counters should not include direct messages (#3554)
* [bugfix] post counters should not include direct messages #3504

The fix is relativly simple, it just adds a line to the relevant
function which excludes all private posts.

* Formating fix

* mb
2024-11-21 11:06:06 +01:00