feat: follow llm.txt
This commit is contained in:
@@ -26,9 +26,9 @@ type content struct{}
|
||||
// ContentDetailResult is the internal detail result used by controllers.
|
||||
type ContentDetailResult struct {
|
||||
// Content is the content entity.
|
||||
Content *models.Content
|
||||
Content *models.Content
|
||||
// Price is the price settings (may be nil).
|
||||
Price *models.ContentPrice
|
||||
Price *models.ContentPrice
|
||||
// HasAccess indicates whether the user can access main assets.
|
||||
HasAccess bool
|
||||
}
|
||||
@@ -44,7 +44,7 @@ func (s *content) Create(ctx context.Context, tenantID, userID int64, form *dto.
|
||||
visibility = consts.ContentVisibilityTenantOnly
|
||||
}
|
||||
|
||||
previewSeconds := int32(60)
|
||||
previewSeconds := consts.DefaultContentPreviewSeconds
|
||||
if form.PreviewSeconds != nil && *form.PreviewSeconds > 0 {
|
||||
previewSeconds = *form.PreviewSeconds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user