diff options
Diffstat (limited to 'internal/web/thread.go')
-rw-r--r-- | internal/web/thread.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/web/thread.go b/internal/web/thread.go index 523cf7579..20145cfcd 100644 --- a/internal/web/thread.go +++ b/internal/web/thread.go @@ -20,6 +20,7 @@ package web import ( "context" "encoding/json" + "errors" "fmt" "net/http" "strings" @@ -124,6 +125,13 @@ func (m *Module) threadGETHandler(c *gin.Context) { return } + // Don't render boosts/reblogs as top-level statuses. + if status.Reblog != nil { + err := errors.New("status is a boost wrapper / reblog") + apiutil.WebErrorHandler(c, gtserror.NewErrorNotFound(err), instanceGet) + return + } + // Fill in the rest of the thread context. context, errWithCode := m.processor.Status().WebContextGet(ctx, targetStatusID) if errWithCode != nil { |