From f460948965da3aa663907c21816642127d7dc47a Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Fri, 17 Apr 2026 11:07:52 -0700 Subject: [PATCH] Fix video url --- api/swagger/swagger-v1.yaml | 13 +++++++++++++ api/v1_comments.go | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/api/swagger/swagger-v1.yaml b/api/swagger/swagger-v1.yaml index 3cf503ca..49625c6c 100644 --- a/api/swagger/swagger-v1.yaml +++ b/api/swagger/swagger-v1.yaml @@ -10769,6 +10769,11 @@ components: items: type: integer example: 67890 + videoUrl: + type: string + nullable: true + maxLength: 2048 + description: Optional URL for a video attachment (stored on the comment record) dashboard_wallet_users_response: type: object properties: @@ -14938,6 +14943,10 @@ components: type: boolean is_members_only: type: boolean + video_url: + type: string + nullable: true + description: Optional URL for a video attachment on this comment is_muted: type: boolean created_at: @@ -16241,6 +16250,10 @@ components: type: string updated_at: type: string + video_url: + type: string + nullable: true + description: Optional URL for a video attachment on this reply parent_comment_id: type: integer user_playlist_library: diff --git a/api/v1_comments.go b/api/v1_comments.go index 856ee1a1..71b1b23a 100644 --- a/api/v1_comments.go +++ b/api/v1_comments.go @@ -30,6 +30,7 @@ type CreateCommentRequest struct { ParentId *int `json:"parentId,omitempty" validate:"omitempty,min=1"` TrackTimestampS *int `json:"trackTimestampS,omitempty" validate:"omitempty,min=0"` Mentions []int `json:"mentions,omitempty" validate:"omitempty,dive,min=1"` + VideoUrl string `json:"videoUrl,omitempty" validate:"omitempty,max=2048"` } type UpdateCommentRequest struct { @@ -175,6 +176,9 @@ func (app *ApiServer) postV1Comment(c *fiber.Ctx) error { } metadataMap["mentions"] = mentions } + if req.VideoUrl != "" { + metadataMap["video_url"] = req.VideoUrl + } metadataObj := map[string]interface{}{ "cid": "",