mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-14 08:17:29 -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
|
|
@ -21,7 +21,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
|
||||
timeline2 "github.com/superseriousbusiness/gotosocial/internal/cache/timeline"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/cache/timeline"
|
||||
statusfilter "github.com/superseriousbusiness/gotosocial/internal/filter/status"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/filter/usermute"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtscontext"
|
||||
|
|
@ -356,16 +356,11 @@ func (s *Surface) listEligible(
|
|||
}
|
||||
}
|
||||
|
||||
// timelineStatus uses the provided ingest function to put the given
|
||||
// status in a timeline with the given ID, if it's timelineable.
|
||||
//
|
||||
// If the status was inserted into the timeline, true will be returned
|
||||
// + it will also be streamed to the user using the given streamType.
|
||||
|
||||
// timelineStatus ...
|
||||
// timelineStatus will insert the given status into the given timeline, if it's
|
||||
// timelineable. if the status was inserted into the timeline, true will be returned.
|
||||
func (s *Surface) timelineStatus(
|
||||
ctx context.Context,
|
||||
timeline *timeline2.StatusTimeline,
|
||||
timeline *timeline.StatusTimeline,
|
||||
account *gtsmodel.Account,
|
||||
status *gtsmodel.Status,
|
||||
streamType string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue