Xyphyn
590eedc0fb
misc: minor tweaks
2023-07-28 18:52:37 -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
3d19318355
misc: Increase post body padding
2023-07-28 16:22:50 -07:00
Xylight
d3aae647a8
feat: add moderation tools ( #33 )
...
* feat: Add post submission removal
* feat: add comment submission removal
* feat: add report viewing and resolving
* misc: add notification dot
* misc: add locked thread badge
* feat: add thread locking
* feat: add initiating message conversations
* feat: add post pinning/unpinning
* misc: bump version
* fix: tweak lock colors
* fix: update post data on pin
* fix: return if reason is empty
2023-07-27 15:53:31 -07:00
Xyphyn
b0e9e898f1
fix: fix #28
2023-07-27 11:30:56 -07:00
Peter Bui
54c03b96dc
fix: properly load comments when sorting ( #30 )
...
Need to set type_ to 'All' when calling getComments(). Otherwise,
trying sort the comments on a post by "Top" or "New" will refresh
without any comments.
2023-07-26 21:14:44 -07:00
Xyphyn
1400779b18
misc: tweak user link color
2023-07-26 16:08:35 -07:00
Xyphyn
038a4363b0
fix: swap order of isImage and thumbnail
2023-07-26 15:03:43 -07:00
Xyphyn
03d854011b
feat: add #16
2023-07-26 11:52:41 -07:00
Xyphyn
1dd179d636
feat: Add search function
2023-07-26 11:39:54 -07:00
Peter Bui
e778450963
fix: show post.url if the post does not have a thumbnail ( #23 )
...
Right now, if a post does not have a post.thumbnail_url and is just a
link to another website, the link is not displayed... so the user cannot
go to the actual article.
This copies the link code from the Post object and provides a link if
there is a post.url but not a post.thumbnail_url.
2023-07-26 10:33:05 -07:00
Xylight
7b1ad247f9
feat: Add post and comment editing ( #12 )
...
* feat: Add editing
* feat: Add comment badges
* fix: make loading more consistent
* misc: remove prop drilling
* feat: Add post editing
* misc: update version
* feat: Add comment deletion
2023-07-25 11:12:15 -07:00
Xyphyn
0fb17f626f
fix: Make child loading indicator only appear on parent
2023-07-19 16:09:24 -07:00
Xyphyn
5d0e09f2e3
misc: minor design tweaks
2023-07-18 17:08:08 -07:00
Xyphyn
b0f3e01f5a
misc: Split post component into more components
2023-07-18 16:38:45 -07:00
Xyphyn
58057bbeaa
fix centering
2023-07-18 14:35:37 -07:00
Xyphyn
1d5ddcbd70
misc: Fix spinner pos
2023-07-18 14:35:19 -07:00
Xyphyn
12d4a9d9de
misc: Fix line height
2023-07-18 12:05:32 -07:00
Xyphyn
9d21f6331a
misc: Minor design tweaks
2023-07-18 11:34:32 -07:00
Xyphyn
3bb849cb4b
design: Increase contrast for instance url
2023-07-17 17:10:22 -07:00
Xyphyn
4bfdda2e27
feat: Add spinner
2023-07-17 16:30:05 -07:00
Xyphyn
fed5cc2263
feat: Allow changing instance URL when not logged in
2023-07-17 10:40:06 -07:00
Xyphyn
f127b5f645
fix: remove border
2023-07-16 16:44:59 -07:00
Xyphyn
f1196be17c
fix: Fix link desigb
2023-07-16 16:36:35 -07:00
Xyphyn
ddfa1aae39
feat: Add better URL handling and badges to post page
2023-07-16 13:31:44 -07:00
Xyphyn
eb006ed982
misc: I haven't eaten in 16 hours brb gonna get some food
2023-07-16 13:24:32 -07:00
Xyphyn
d6204b24ce
misc: Remove unused properties
2023-07-15 17:25:55 -07:00
Xyphyn
05f7262745
misc: Change post menu to be bottom aligned
2023-07-15 15:19:16 -07:00
Xyphyn
2bc4d19ae0
fix: (somehow) make absolute work again
2023-07-14 12:31:01 -07:00
Xyphyn
ff3246c0a6
misc: change svelte:head
2023-07-13 13:07:42 -07:00
Xyphyn
a6f5dce056
feat: Add viddeo support
2023-07-13 10:59:10 -07:00
Xyphyn
4412169602
feat: Add comment scores
2023-07-09 15:50:34 -07:00
Xyphyn
810d6011a5
misc: Fix comment loading
2023-07-07 15:18:12 -07:00
Xyphyn
32a5641a0d
feat: Add 'load more' to allow infinite comment trees
2023-07-07 13:45:59 -07:00
Xyphyn
011d73c849
design: Add blockquotes and tweak line height
2023-07-06 18:43:12 -07:00
Xyphyn
6181c5138a
why the heck is the site card breaking
2023-07-06 18:32:53 -07:00
Xyphyn
54b1cef68f
feat: Add upvote %
2023-07-06 13:28:38 -07:00
Xyphyn
71ca33d9fc
misc: Update relative dates (again)
2023-07-06 13:07:19 -07:00
Xyphyn
e259ceb6e4
misc: Update relative dates
2023-07-06 13:00:20 -07:00
Xyphyn
1a0881f9ce
feat: Add notification for unreads
2023-07-06 11:11:25 -07:00
Xyphyn
dd30acf19d
feat: Fix commenting issue
2023-07-05 14:36:17 -07:00
Xyphyn
1842139af9
feat: Add post uploading
2023-07-05 12:58:36 -07:00
Xyphyn
5f674d4691
feat: Add communities
2023-07-04 20:18:25 -07:00
Xyphyn
9efe1df0c2
feat: Add user pages
2023-07-04 19:39:27 -07:00
Xyphyn
04704749b7
i forgot whatever i've been doing, i think i added an inbox
2023-07-04 18:45:15 -07:00
Xyphyn
87817aaa34
fix: Fix error handling (i hope)
2023-07-04 14:26:39 -07:00
Xyphyn
f0523b0c3f
feat: Add login stuff
2023-07-04 13:08:58 -07:00
Xyphyn
f71ad4be8e
misc: add account logging in
2023-07-03 14:57:53 -07:00
Xyphyn
7d3f29d9eb
misc: Organize components
2023-07-03 12:35:49 -07:00
Xyphyn
a5460a03b4
misc: Improve error handling
2023-07-03 12:33:04 -07:00