Commit 0968b1f
authored
Added more fields to Account Entity (#1499)
ref https://linear.app/ghost/issue/BER-3012
- we want to remove the multiple calls to `siteService.getSiteByHost` and `accountService.getDefaultAccountForSite` in dispatchers.js, as they create 3 database queries for each dispatcher call
- instead, we want to load the account data in the Fedify context directly, so that we make a single database query to retrieve host account data per request
- dispatchers however currently use the Account type, not the Account entity. This change adds the missing fields to Account entity so it can be used by dispatchers code1 parent 0fa04bd commit 0968b1f
File tree
11 files changed
+231
-402
lines changed- src
- account
- feed
- helpers/activitypub
- http
- api
- helpers
- post
11 files changed
+231
-402
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
129 | 138 | | |
130 | 139 | | |
131 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
132 | 144 | | |
133 | 145 | | |
134 | 146 | | |
| |||
0 commit comments