mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 16:08:07 -06:00
have a local and public timeline *per user*
This commit is contained in:
parent
7ee2ef039c
commit
374f0f5175
3 changed files with 9 additions and 14 deletions
|
|
@ -57,8 +57,8 @@ func (p *Processor) publicTimelineGet(
|
|||
// account.
|
||||
requester,
|
||||
|
||||
// Global public timeline cache.
|
||||
&p.state.Caches.Timelines.Public,
|
||||
// Keyed-by-account-ID, public timeline cache.
|
||||
p.state.Caches.Timelines.Public.MustGet(requester.ID),
|
||||
|
||||
// Current
|
||||
// page.
|
||||
|
|
@ -110,8 +110,8 @@ func (p *Processor) localTimelineGet(
|
|||
// account.
|
||||
requester,
|
||||
|
||||
// Global local timeline cache.
|
||||
&p.state.Caches.Timelines.Local,
|
||||
// Keyed-by-account-ID, local timeline cache.
|
||||
p.state.Caches.Timelines.Local.MustGet(requester.ID),
|
||||
|
||||
// Current
|
||||
// page.
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ func (suite *PublicTestSuite) TestPublicTimelineGetHideFiltered() {
|
|||
}
|
||||
|
||||
// Clear the timeline to drop all cached statuses.
|
||||
suite.state.Caches.Timelines.Public.Clear()
|
||||
suite.state.Caches.Timelines.Public.ClearAll()
|
||||
|
||||
// Create a filter to hide one status on the timeline.
|
||||
if err := suite.db.PutFilter(ctx, filter); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue