code: func ConvertComment(request *http.Request, comment comment.Comment, additional ...CommentConvertFunc) *app.Comment {
  	relatedURL := rest.AbsoluteURL(request, app.CommentsHref(comment.ID))
  	relatedCreatorLink := rest.AbsoluteURL(request, fmt.Sprintf("%s/%s", usersEndpoint, comment.Creator))
  	c := &app.Comment{
  		Type: APIStringTypeComments,
  		ID:   &comment.ID,
  		Attributes: &app.CommentAttributes{
  			Body:         &comment.Body,
  			BodyRendered: ptr.String(rendering.RenderMarkupToHTML(comment.Body, comment.Markup)),
  			Markup:       ptr.String(rendering.NilSafeGetMarkup(&comment.Markup)),
  			CreatedAt:    &comment.CreatedAt,
  			UpdatedAt:    &comment.UpdatedAt,
  		},
  		Relationships: &app.CommentRelations{
  			Creator: &app.RelationGeneric{
  				Data: &app.GenericData{
  					Type: ptr.String(APIStringTypeUser),
  					ID:   ptr.String(comment.Creator.String()),
  					Links: &app.GenericLinks{
  						Related: &relatedCreatorLink,
  					},
  				},
  			},
  			CreatedBy: &app.CommentCreatedBy{ // Keep old API style until all cients are updated
  				Data: &app.IdentityRelationData{
  					Type: APIStringTypeUser,
  					ID:   &comment.Creator,
  				},
  				Links: &app.GenericLinks{
  					Related: &relatedCreatorLink,
  				},
  			},
  		},
  		Links: &app.GenericLinks{
  			Self:    &relatedURL,
  			Related: &relatedURL,
  		},
  	}
  	if comment.ParentCommentID.Valid == true {
  		c.Relationships.ParentComment = &app.RelationGeneric{
  			Data: &app.GenericData{
  				Type: ptr.String(APIStringTypeComments),
  				ID:   ptr.String(comment.ParentCommentID.UUID.String()),
  			},
  		}
  	}
  	for _, add := range additional {
  		add(request, &comment, c)
  	}
  	return c
  }
docs: // ConvertComment converts between internal and external REST representation