Commit Graph
13 Commits
Author SHA1 Message Date
Xylight 3c74cfe4e6 feat: add admin and moderator badges to posts and comments 2024-03-09 12:00:34 -08:00
Xyphyn 0d08df2ad5 fix: invalid dates 2023-10-03 16:07:40 -07:00
Xyphyn facb1081c9 fix: show community in reports page 2023-10-03 15:55:32 -07:00
Xyphyn 1b4bd8081f feat: add 'cozy' post style 2023-09-23 14:54:58 -07:00
Xyphyn e0aafca7b3 fix: remove dividers and add gap in card view 2023-09-17 15:09:11 -07:00
Xyphyn ae09c5ab92 feat: make comment items and posts consistent 2023-09-17 14:57:52 -07:00
Xyphyn c53ec52d86 feat: switch from card to material 2023-09-04 11:27:19 -07:00
Xyphyn d02d8556d5 switch to mono-svelte Button component 2023-09-03 17:05:45 -07:00
Xyphyn 461a15a1ef feat: add better thread viewing 2023-07-30 13:54:39 -07:00
Xyphyn 32f65add46 misc: tweak comments look 2023-07-29 10:22:03 -07:00
Thomas J Faughnan Jr 34c712c01c fix: parse date strings as UTC
For posts, comments, and other objects, the `published` attribute is a
string containing an ISO 8601 timestamp. This timestamp is UTC, though
it is not explicit in the string's contents. When the `Date` constructor
is used on such strings, they are parsed as though they are local
timestamps. According to [1]:

> When the time zone offset is absent, date-only forms are
> interpreted as a UTC time and date-time forms are interpreted as local
> time. This is due to a historical spec error that was not consistent
> with ISO 8601 but could not be changed due to web
> compatibility.

This patch explicitly appends a 'Z' to the `published` string when it is
used as the argument to the `Date` constructor.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
2023-07-28 20:02:01 -04:00
Xyphyn ef0cb48710 misc: switch to CommentItem for posts 2023-07-27 11:33:23 -07:00
Xyphyn 1dd179d636 feat: Add search function 2023-07-26 11:39:54 -07:00