gotosocial/internal/processing/account
Vyr Cossont 8fdd358f4b
[feature] Conversations API (#3013)
* Implement conversations API

* Sort and page conversations by last status ID

* Appease linter

* Fix deleting conversations and statuses

* Refactor to make migrations automatic

* Lint

* Update tests post-merge

* Fixes from live-fire testing

* Linter caught a format problem

* Refactor tests, fix cache

* Negative test for non-DMs

* Run conversations advanced migration on testrig startup as well as regular server startup

* Document (lack of) side effects of API method for deleting a conversation

* Make not-found check less nested for readability

* Rename PutConversation to UpsertConversation

* Use util.Ptr instead of IIFE

* Reduce cache used by conversations

* Remove unnecessary TableExpr/ColumnExpr

* Use struct tags for both unique constraints on Conversation

* Make it clear how paging with GetDirectStatusIDsBatch should be used

* Let conversation paging skip conversations it can't render

* Use Bun NewDropTable

* Convert delete raw query to Bun

* Convert update raw query to Bun

* Convert latestConversationStatusesTempTable raw query partially to Bun

* Convert conversationStatusesTempTable raw query partially to Bun

* Rename field used to store result of MaxDirectStatusID

* Move advanced migrations to their own tiny processor

* Catch up util function name with main

* Remove json.… wrappers

* Remove redundant check

* Combine error checks

* Replace map with slice of structs

* Address processor/type converter comments

- Add context info for errors
- Extract some common processor code into shared methods
- Move conversation eligibility check ahead of populating conversation

* Add error context when dropping temp tables
2024-07-23 20:44:31 +01:00
..
account_test.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
account.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
alias_test.go [bugfix] Prevent URL + URI for same account being used as alias target (#2545) 2024-01-20 12:45:43 +01:00
alias.go [bugfix] Prevent URL + URI for same account being used as alias target (#2545) 2024-01-20 12:45:43 +01:00
block.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
bookmarks.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
delete_test.go [feature] New user sign-up via web page (#2796) 2024-04-11 11:45:53 +02:00
delete.go [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
follow_request.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
follow_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
follow.go [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
get.go [feature/frontend] Respect prefers-reduced-motion for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
interactionpolicies.go [feature] Allow users to set default interaction policies per status visibility (#3108) 2024-07-17 16:46:52 +02:00
lists.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
move_test.go [bugfix] boost and account recursion (#2982) 2024-06-10 19:42:41 +01:00
move.go [bugfix] boost and account recursion (#2982) 2024-06-10 19:42:41 +01:00
mute.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
note.go [feature] Support setting private notes on accounts (#1982) 2023-07-27 10:30:39 +02:00
relationships.go [feature] Option to hide followers/following (#2788) 2024-04-02 10:42:24 +01:00
rss_test.go [feature/frontend] Respect prefers-reduced-motion for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
rss.go [feature/performance] Store account stats in separate table (#2831) 2024-04-16 13:10:13 +02:00
statuses.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
themes_test.go [feature] User-selectable preset CSS themes for accounts (#2777) 2024-03-25 17:32:24 +00:00
themes.go [feature] User-selectable preset CSS themes for accounts (#2777) 2024-03-25 17:32:24 +00:00
update_test.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
update.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00