Skip to content

Commit

Permalink
fix IsMarkdown boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
rekolobov committed Dec 2, 2022
1 parent 54e6aca commit 8776a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/YouTrackSharp/Issues/Comment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal static Comment FromApiEntity(IssueComment entity, bool wikify = false)
AuthorFullName = entity.Author?.FullName,
IssueId = entity.Issue?.IdReadable,
IsDeleted = entity.Deleted ?? false,
IsMarkdown = false,
IsMarkdown = true,
Text = wikify ? entity.TextPreview : entity.Text,
Created = (entity.Created ?? 0).TimestampToDateTime(),
Updated = (entity.Updated ?? 0).TimestampToDateTime(),
Expand Down
2 changes: 1 addition & 1 deletion src/YouTrackSharp/Issues/Issue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal static Issue FromApiEntity(Generated.Issue entity, bool wikify = false,
JiraId = entity.ExternalIssue?.Id,
Summary = entity.Summary,
Description = wikify ? entity.WikifiedDescription : entity.Description,
IsMarkdown = false,
IsMarkdown = true,
Comments = entity.Comments?.Select(comment => Comment.FromApiEntity(comment, wikifyContents)).ToList(),
Tags = entity.Tags?.Select(tag => new SubValue<string>(){Value=tag.Name})
};
Expand Down

0 comments on commit 8776a02

Please sign in to comment.