From aeb65bceae97611b8931de2e954df18afedd812f Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 12 Jul 2024 20:36:03 +0200 Subject: [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) * [feature/frontend] Better web threading model * fix test * bwap * tweaks * more tweaks to wording * typo * indenting * adjust wording * aaa --- internal/processing/account/statuses.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/processing/account') diff --git a/internal/processing/account/statuses.go b/internal/processing/account/statuses.go index 2513f17c7..593c30e27 100644 --- a/internal/processing/account/statuses.go +++ b/internal/processing/account/statuses.go @@ -179,7 +179,7 @@ func (p *Processor) WebStatusesGet( for _, s := range statuses { // Convert fetched statuses to web view statuses. - item, err := p.converter.StatusToWebStatus(ctx, s, nil) + item, err := p.converter.StatusToWebStatus(ctx, s) if err != nil { log.Errorf(ctx, "error convering to web status: %v", err) continue @@ -198,13 +198,13 @@ func (p *Processor) WebStatusesGet( func (p *Processor) WebStatusesGetPinned( ctx context.Context, targetAccountID string, -) ([]*apimodel.Status, gtserror.WithCode) { +) ([]*apimodel.WebStatus, gtserror.WithCode) { statuses, err := p.state.DB.GetAccountPinnedStatuses(ctx, targetAccountID) if err != nil && !errors.Is(err, db.ErrNoEntries) { return nil, gtserror.NewErrorInternalError(err) } - webStatuses := make([]*apimodel.Status, 0, len(statuses)) + webStatuses := make([]*apimodel.WebStatus, 0, len(statuses)) for _, status := range statuses { if status.Visibility != gtsmodel.VisibilityPublic { // Skip non-public @@ -212,7 +212,7 @@ func (p *Processor) WebStatusesGetPinned( continue } - webStatus, err := p.converter.StatusToWebStatus(ctx, status, nil) + webStatus, err := p.converter.StatusToWebStatus(ctx, status) if err != nil { log.Errorf(ctx, "error convering to web status: %v", err) continue -- cgit v1.2.3