diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:34:52 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:34:52 +0200 |
commit | 56509ab16c8d2225182eb0400e5c6a4900870391 (patch) | |
tree | e3c3bcc760ecc187a3f4ee8c6616855d15e86d83 /t/post.tc | |
parent | 3e400c3df5572524b7ba08b030f45eb3ba6b7734 (diff) | |
download | cforum-56509ab16c8d2225182eb0400e5c6a4900870391.tar.gz |
Fix mktpl bug
Diffstat (limited to 't/post.tc')
-rw-r--r-- | t/post.tc | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -3,13 +3,23 @@ printf("%d", id); printf(": "); printf("%s", post->subject ); printf("</h1>\n<p>From: "); -printf("%s", user->full ); -printf("\n<<a href=\"?user="); +printf("%s", user->full? user->full: "" ); +printf(" "); +if(user->full) printf("<"); + +printf("<a href=\"?user="); printf("%d", user->id); printf("\">"); printf("%s", user->name ); -printf("</a>>\n<br>Date: "); -PFREE(date(post->created)); +printf("</a>"); +if(user->full) printf(">"); +printf("\n<br>Date: "); +printdate(post->created); +printf("\n"); +if(post->edited){ + printf("<br>Edited: "); + printdate(post->edited); +} printf("\n<pre>\n"); printf("%s", post->text ); printf("\n</pre>"); |