You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 weeks ago
..
accountaction.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
accountapprove.go [feature] Self-serve email change for users (#2957) 7 months ago
accountget.go [feature] Admin accounts endpoints; approve/reject sign-ups (#2826) 9 months ago
accountreject.go [feature] Self-serve email change for users (#2957) 7 months ago
accountsgetv1.go [feature] Page through accounts as moderator (#2881) 8 months ago
accountsgetv2.go [feature] Page through accounts as moderator (#2881) 8 months ago
accountsgetv2_test.go [feature] add support for receiving federated status edits (#3597) 3 weeks ago
admin.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
admin_test.go [feature] Debug admin endpoint to clear caches (#2940) 7 months ago
debug_off.go [feature] Debug admin endpoint to clear caches (#2940) 7 months ago
debug_on.go [feature] Debug admin endpoint to clear caches (#2940) 7 months ago
domainallowcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainallowdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainallowget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainallowsget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainblockcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainblockdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainblockget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainblocksget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 1 year ago
domainkeysexpire.go [feature] Process outgoing Move from clientAPI (#2750) 10 months ago
domainpermission.go [feature] Process outgoing Move from clientAPI (#2750) 10 months ago
domainpermissiondraftaccept.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissiondraftcreate.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissiondraftget.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissiondraftremove.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissiondraftsget.go [chore] rename New___(string) int signature functions to Parse___(string) int (#3580) 4 weeks ago
domainpermissionexcludecreate.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissionexcludeget.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissionexcluderemove.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
domainpermissionexcludesget.go [feature] Add domain permission drafts and excludes (#3547) 1 month ago
emailtest.go [feature/frontend] Let admins send test email to validate SMTP config (#2934) 7 months ago
emojicategoriesget.go [bugfix] Fix Swagger spec and add test script (#2698) 10 months ago
emojicategoriesget_test.go
emojicreate.go [feature] Allow emoji shortcode to be 1-character length (#3556) 1 month ago
emojicreate_test.go [feature] Allow import of following and blocks via CSV (#3150) 5 months ago
emojidelete.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
emojidelete_test.go [feature] support processing of (many) more media types (#3090) 6 months ago
emojiget.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
emojiget_test.go [feature] support processing of (many) more media types (#3090) 6 months ago
emojisget.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
emojisget_test.go
emojiupdate.go [feature] Allow emoji shortcode to be 1-character length (#3556) 1 month ago
emojiupdate_test.go [feature] Allow emoji shortcode to be 1-character length (#3556) 1 month ago
headerfilter.go [feature] Add HTTP header permission section to frontend (#2893) 8 months ago
headerfilter_create.go [feature] request blocking by http headers (#2409) 1 year ago
headerfilter_delete.go [feature] Add HTTP header permission section to frontend (#2893) 8 months ago
headerfilter_get.go [feature] request blocking by http headers (#2409) 1 year ago
mediacleanup.go [feature] Process outgoing Move from clientAPI (#2750) 10 months ago
mediacleanup_test.go
mediarefetch.go [feature] Process outgoing Move from clientAPI (#2750) 10 months ago
reportget.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
reportresolve.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
reportresolve_test.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
reportsget.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
reportsget_test.go [feature] add support for receiving federated status edits (#3597) 3 weeks ago
rulecreate.go [feature] Process outgoing Move from clientAPI (#2750) 10 months ago
ruledelete.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
ruleget.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago
rulesget.go [bugfix] Fix Swagger spec and add test script (#2698) 10 months ago
ruleupdate.go [feature/frontend] Reports frontend v2 (#3022) 6 months ago