diff options
| author | 2024-08-22 19:47:10 +0200 | |
|---|---|---|
| committer | 2024-08-22 19:47:10 +0200 | |
| commit | 53fccb8af8943aa63e557cbd54d2c19c75b63174 (patch) | |
| tree | 5a3dad5bfb03df895a1a45c69d8fe8acc33abab6 /internal/processing/fedi | |
| parent | [bugfix/frontend] Small safari + gnome web fixes (#3219) (diff) | |
| download | gotosocial-53fccb8af8943aa63e557cbd54d2c19c75b63174.tar.xz | |
[feature] Use `local_only` field, deprecate `federated` field (#3222)
* [feature] Use `local_only` field, deprecate `federated` field
* use `deprecated` comment for form.Federated
* nolint
Diffstat (limited to 'internal/processing/fedi')
| -rw-r--r-- | internal/processing/fedi/collections.go | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/processing/fedi/collections.go b/internal/processing/fedi/collections.go index e81d3e269..fd84e7688 100644 --- a/internal/processing/fedi/collections.go +++ b/internal/processing/fedi/collections.go @@ -129,6 +129,18 @@ func (p *Processor) OutboxGet(  			hi = statuses[0].ID  		} +		// Reslice statuses dropping all those invisible to requester +		// (eg., local-only statuses, if the requester is remote). +		statuses, err = p.visFilter.StatusesVisible( +			ctx, +			auth.requestingAcct, +			statuses, +		) +		if err != nil { +			err := gtserror.Newf("error filtering statuses: %w", err) +			return nil, gtserror.NewErrorInternalError(err) +		} +  		// Start building AS collection page params.  		params.Total = util.Ptr(*receivingAcct.Stats.StatusesCount)  		var pageParams ap.CollectionPageParams  | 
