mirror of
1
Fork 0
gotosocial/internal/api/client
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
..
accounts [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
admin [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
apps [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
blocks [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
bookmarks [chore] Swagger: add missing paging params to bookmarks list (#2759) 2024-03-15 11:43:24 +01:00
conversations [feature] Stub conversations endpoint (#2853) 2024-04-18 12:36:02 +02:00
customemojis [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
favourites [feature] Add experimental `instance-federation-spam-filter` option (#2685) 2024-02-27 12:22:05 +00:00
featuredtags [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
filters [feature] filter API v2: Restore keywords_attributes and statuses_attributes (#2995) 2024-06-14 10:11:41 +02:00
followrequests [bugfix] further paging mishaps (#2884) 2024-04-30 16:22:23 +02:00
instance [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
lists [chore] Swagger: correct names and formats for several array params (#2758) 2024-03-15 11:31:58 +01:00
markers [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
media [experiment] add alternative wasm sqlite3 implementation available via build-tag (#2863) 2024-05-27 17:46:15 +02:00
mutes [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
notifications [bugfix] rename `include_types[]` to `types[]` (#3023) 2024-06-18 18:18:35 +02:00
polls [bugfix] Correct Swagger path for poll voting (#2996) 2024-06-12 11:16:46 +02:00
preferences [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
reports [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
search [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
statuses [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
streaming [feature] Implement filters_changed stream event (#2972) 2024-06-07 10:51:13 +02:00
timelines [bugfix] Avoid empty public/local timeline queries (#2784) 2024-03-25 16:20:45 +00:00
user [chore] Warn about email/password change when using OIDC (#2975) 2024-06-07 15:21:57 +01:00