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
Xyphyn
f90ecb703c
misc: add login message to post create
2023-07-28 14:00:42 -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
53ef843cde
feat: add profile page filtering
2023-07-27 12:48:43 -07:00
Xyphyn
a39cb60652
feat: Add user blocking
2023-07-27 12:39:01 -07:00
Xyphyn
81270b72d3
feat: Add pagination to inbox page
2023-07-27 12:30:09 -07:00
Xyphyn
c0aaf08a9f
feat: add sorts to user pages
2023-07-27 12:25:26 -07:00
Xyphyn
d427d4b2fc
misc: remove useless page
2023-07-27 11:58:17 -07:00
Xyphyn
378580dd9f
misc: switch to pagination component
2023-07-27 11:57:56 -07:00
Xyphyn
8e75e05585
fix: add pageination to user profiles
2023-07-27 11:52:09 -07:00
Xyphyn
ef0cb48710
misc: switch to CommentItem for posts
2023-07-27 11:33:23 -07:00
Xyphyn
b0e9e898f1
fix: fix #28
2023-07-27 11:30:56 -07:00
Xylight
93c670f20a
Merge pull request #29 from Xyphyn/moderation
...
feat: add reporting
2023-07-26 21:46:27 -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
6fcef02809
feat: add reporting
2023-07-26 19:13:26 -07:00
Xyphyn
ff2d424a99
misc: tweak line height
2023-07-26 18:48:09 -07:00
Xyphyn
c2746cafaf
misc: make user card visible on mobile
2023-07-26 18:42:31 -07:00
Xyphyn
327ef007aa
misc: change community sidebar to a modal
2023-07-26 18:40:26 -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
5024e9edf1
feat: add #20
2023-07-26 12:45:34 -07:00
Xyphyn
9c9a3dc6a2
fix: Fix community sidebar going offscreen
2023-07-26 11:52:58 -07:00
Xyphyn
03d854011b
feat: add #16
2023-07-26 11:52:41 -07:00
Xyphyn
bb8818b17b
fix: Add search button
2023-07-26 11:43:37 -07:00
Xyphyn
1dd179d636
feat: Add search function
2023-07-26 11:39:54 -07:00
Xyphyn
91134d05e4
fix: Fix 2FA form validation
2023-07-26 10:43:40 -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
Peter Bui
e028113ab0
feat: show compact posts ( #22 )
...
Add a new UI setting for showing compact posts:
- Show a small thumbnail to the right of the metadata and title if a
thumbnail is available or if the post is an image
- Do not show normal thumbnail or text bodies.
2023-07-26 10:32:04 -07:00
Xyphyn
2f1257fffa
misc: Add empty search to community search
2023-07-25 19:19:18 -07:00
Xyphyn
d42f8bc8af
misc: Add empty subscribed feed message
2023-07-25 19:19:18 -07:00
Peter Bui
fda05d200e
fix: add onchange for Communities TextInput
...
This allows the user to simply enter in their filter and press enter,
rather than having to press the "Search" button.
2023-07-25 17:09:05 -04:00
Xyphyn
90587cfa26
fix: Fix #10
2023-07-25 11:30:27 -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
63788009b4
fix: use location.origin
2023-07-23 16:46:22 -07:00
Xyphyn
55f5b3591a
fix: Don't show reply popup all the time
2023-07-22 16:41:03 -07:00
Xyphyn
123336871d
feat: Add default sorts
2023-07-22 16:27:22 -07:00
Xyphyn
75a7e87110
misc: Change settings menu
2023-07-22 16:18:09 -07:00
Xyphyn
e742e32832
feat: Add instance URL changing via env var
2023-07-22 10:59:35 -07:00
Xyphyn
a2a285498e
misc: Make page load faster by client loading it
2023-07-22 10:52:30 -07:00
Daniel Wolbach
259203b4f3
misc: update MultiSelect style
2023-07-22 11:01:36 +02:00
Xyphyn
0e89692f25
fix: add auth param
2023-07-19 17:00:46 -07:00
Xyphyn
0fb17f626f
fix: Make child loading indicator only appear on parent
2023-07-19 16:09:24 -07:00
Xyphyn
4c3b5fae6a
misc: Tweak design
2023-07-19 15:36:01 -07:00
Xyphyn
4bacc2f0a1
design: Change toast design
2023-07-19 14:17:29 -07:00
Xyphyn
e243848e17
misc: Change the way buttons are handled
2023-07-19 13:43:18 -07:00
Xyphyn
d8ac0d807a
fix padding
2023-07-18 17:42:18 -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