mirror of
1
Fork 0
gotosocial/internal/processing/admin
kim 21bb324156
[chore] media and emoji refactoring (#3000)
* start updating media manager interface ready for storing attachments / emoji right away

* store emoji and media as uncached immediately, then (re-)cache on Processing{}.Load()

* remove now unused media workers

* fix tests and issues

* fix another test!

* fix emoji activitypub uri setting behaviour, fix remainder of test compilation issues

* fix more tests

* fix (most of) remaining tests, add debouncing to repeatedly failing media / emojis

* whoops, rebase issue

* remove kim's whacky experiments

* do some reshuffling, ensure emoji uri gets set

* ensure marked as not cached on cleanup

* tweaks to media / emoji processing to handle context canceled better

* ensure newly fetched emojis actually get set in returned slice

* use different varnames to be a bit more obvious

* move emoji refresh rate limiting to dereferencer

* add exported dereferencer functions for remote media, use these for recaching in processor

* add check for nil attachment in updateAttachment()

* remove unused emoji and media fields + columns

* see previous commit

* fix old migrations expecting image_updated_at to exists (from copies of old models)

* remove freshness checking code (seems to be broken...)

* fix error arg causing nil ptr exception

* finish documentating functions with comments, slight tweaks to media / emoji deref error logic

* remove some extra unneeded boolean checking

* finish writing documentation (code comments) for exported media manager methods

* undo changes to migration snapshot gtsmodels, updated failing migration to have its own snapshot

* move doesColumnExist() to util.go in migrations package
2024-06-26 16:01:16 +01:00
..
account_test.go [feature] Store admin actions in the db, prevent conflicting actions (#2167) 2023-09-04 14:55:17 +01:00
accountaction.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
accountget.go [feature] Admin accounts endpoints; approve/reject sign-ups (#2826) 2024-04-13 13:25:10 +02:00
accounts.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
actions.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
actions_test.go [feature] Store admin actions in the db, prevent conflicting actions (#2167) 2023-09-04 14:55:17 +01:00
admin.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
admin_test.go [feature] Add experimental `instance-federation-spam-filter` option (#2685) 2024-02-27 12:22:05 +00:00
debug_apurl.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
domainallow.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblock.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
domainkeysexpire.go [chore/security] refactor AuthenticateFederatedRequest() to handle account deref + suspension checks (#2371) 2023-11-21 11:35:30 +01:00
domainpermission.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
domainpermission_test.go [bugfix] Don't return Account or Status if new and dereferencing failed, other small fixes (#2563) 2024-01-26 14:17:10 +01:00
email.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
emoji.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
emoji_test.go [bugfix] Fix Postgres emoji delete, emoji category change (#2570) 2024-01-29 14:57:22 +00:00
headerfilter.go [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
media.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
report.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rule.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
signupapprove.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
signupapprove_test.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
signupreject.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
signupreject_test.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
util.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00