feat: started working on thread view

This commit is contained in:
limited_dev 2023-01-25 17:26:21 +01:00
parent 6b919e0b7b
commit 585440d10f
5 changed files with 12 additions and 6 deletions

View file

@ -37,7 +37,7 @@
<a class="report" href="/report/@post.Board/@post.PostID" target="_blank">Report</a>
<span>]</span>
<span>[</span>
<a class="openThread" href="/@post.Board/@post.PostID" target="_blank">(@post.Interactions) Open Thread</a>
<a class="openThread" href="/@post.Board/thread/@post.PostID" target="_blank">(@post.Comments.Count) Open Thread</a>
<span>]</span>
</div>
}
@ -45,9 +45,6 @@
@code {
private static DateTime getTimeFromUnix(double javaTimeStamp)
{
var dateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);

View file

@ -118,7 +118,7 @@
Username = postUsername,
Title = postTitle,
Content = postContent,
Interactions = "",
Interactions = 0,
CreatedAt = DateTimeOffset.Now.ToUnixTimeMilliseconds(),
Board = board.Tag
};