mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 15:02:27 -05:00
remove local / public caches (is out of scope for this work), share more timeline code
This commit is contained in:
parent
294e1a6bd8
commit
227d6edc3e
10 changed files with 256 additions and 180 deletions
|
|
@ -57,8 +57,8 @@ func (p *Processor) publicTimelineGet(
|
|||
// account.
|
||||
requester,
|
||||
|
||||
// Keyed-by-account-ID, public timeline cache.
|
||||
p.state.Caches.Timelines.Public.MustGet(requester.ID),
|
||||
// No cache.
|
||||
nil,
|
||||
|
||||
// Current
|
||||
// page.
|
||||
|
|
@ -106,8 +106,8 @@ func (p *Processor) localTimelineGet(
|
|||
// account.
|
||||
requester,
|
||||
|
||||
// Keyed-by-account-ID, local timeline cache.
|
||||
p.state.Caches.Timelines.Local.MustGet(requester.ID),
|
||||
// No cache.
|
||||
nil,
|
||||
|
||||
// Current
|
||||
// page.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue