mirror of
1
Fork 0
gotosocial/internal/api/client/admin
kim 23fc70f4e6
[feature] add support for receiving federated status edits (#3597)
* add support for extracting Updated field from Statusable implementers

* add support for status edits in the database, and update status dereferencer to handle them

* remove unused AdditionalInfo{}.CreatedAt

* remove unused AdditionalEmojiInfo{}.CreatedAt

* update new mention creation to use status.UpdatedAt

* remove mention.UpdatedAt, fixes related to NewULIDFromTime() change

* add migration to remove Mention{}.UpdatedAt field

* add migration to add the StatusEdit{} table

* start adding tests, add delete function for status edits

* add more of status edit migrations, fill in more of the necessary edit delete functionality

* remove unused function

* allow generating gotosocial compatible ulid via CLI with `go run ./cmd/gen-ulid`

* add StatusEdit{} test models

* fix new statusedits sql

* use model instead of table name

* actually remove the Mention.UpdatedAt field...

* fix tests now new models are added, add more status edit DB tests

* fix panic wording

* add test for deleting status edits

* don't automatically set `updated_at` field on updated statuses

* flesh out more of the dereferencer status edit tests, ensure updated at field set on outgoing AS statuses

* remove media_attachments.updated_at column

* fix up more tests, further complete the dereferencer status edit tests

* update more status serialization tests not expecting 'updated' AS property

* gah!! json serialization tests!!

* undo some gtscontext wrapping changes

* more serialization test fixing 🥲

* more test fixing, ensure the edit.status_id field is actually set 🤦

* fix status edit test

* grrr linter

* add edited_at field to apimodel status

* remove the choice of paging on the timeline public filtered test (otherwise it needs updating every time you add statuses ...)

* ensure that status.updated_at always fits chronologically

* fix more serialization tests ...

* add more code comments

* fix envparsing

* update swagger file

* properly handle media description changes during status edits

* slight formatting tweak

* code comment
2024-12-05 13:35:07 +00:00
..
accountaction.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
accountapprove.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountget.go [feature] Admin accounts endpoints; approve/reject sign-ups (#2826) 2024-04-13 13:25:10 +02:00
accountreject.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountsgetv1.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
accountsgetv2.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
accountsgetv2_test.go [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
admin.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
admin_test.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
debug_off.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
debug_on.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
domainallowcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowsget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblocksget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainkeysexpire.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
domainpermission.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
domainpermissiondraftaccept.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissiondraftcreate.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissiondraftget.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissiondraftremove.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissiondraftsget.go [chore] rename New___(string) int signature functions to Parse___(string) int (#3580) 2024-11-28 12:54:22 +01:00
domainpermissionexcludecreate.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissionexcludeget.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissionexcluderemove.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissionexcludesget.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
emailtest.go [feature/frontend] Let admins send test email to validate SMTP config (#2934) 2024-05-27 17:03:54 +00:00
emojicategoriesget.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
emojicategoriesget_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojicreate.go [feature] Allow emoji shortcode to be 1-character length (#3556) 2024-11-21 12:13:55 +01:00
emojicreate_test.go [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00
emojidelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojidelete_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojiget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiget_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojisget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojisget_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojiupdate.go [feature] Allow emoji shortcode to be 1-character length (#3556) 2024-11-21 12:13:55 +01:00
emojiupdate_test.go [feature] Allow emoji shortcode to be 1-character length (#3556) 2024-11-21 12:13:55 +01:00
headerfilter.go [feature] Add HTTP header permission section to frontend (#2893) 2024-05-05 11:47:22 +00:00
headerfilter_create.go [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
headerfilter_delete.go [feature] Add HTTP header permission section to frontend (#2893) 2024-05-05 11:47:22 +00:00
headerfilter_get.go [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
mediacleanup.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
mediacleanup_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
mediarefetch.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
reportget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportsget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportsget_test.go [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
rulecreate.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
ruledelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
ruleget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rulesget.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
ruleupdate.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00