Commit graph

533 commits

Author SHA1 Message Date
59da2976ab Some more API cleanup.
- Extracted methods for is_mod_or_admin, and is_admin.
- Removed admins from GetPostResponse and GetCommunityResponse.
- Some cleanup.
2020-07-22 14:20:08 -04:00
b6a6d52a92 Merge branch 'main' into api_edit_separation 2020-07-22 13:47:52 -04:00
f81a7ad9ab Adding form_id to comment creates and edits.
- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
  and know which comment they submitted, is the one they're getting
  back.
- This gets rid of all the weird complicated logic in handleFinished(),
  and should stop the comment forms getting cleared once and for all.
2020-07-21 10:56:41 -04:00
Dessalines
55ce7b1339
Adding version to GetSite. Fixes #1001 (#1002)
* Adding version to GetSite. Fixes #1001

* Removing version.ts file
2020-07-21 13:20:23 +00:00
f93f2fe03c Changing location of sub and superscript buttons. 2020-07-20 23:58:58 -04:00
2eac037408 Adding post delete, remove, lock, and sticky. 2020-07-20 23:46:36 -04:00
fd96dfdb5e Added comment delete, remove, read. 2020-07-20 21:37:44 -04:00
Coma Grayce
020cb77613
Add buttons. 2020-07-21 02:40:01 +03:00
Coma Grayce
cbed6547e2
Again, ooops. 2020-07-21 01:19:11 +03:00
Coma Grayce
6fbfb69ee4
Add sub and sup Markdown tags. 2020-07-21 01:06:22 +03:00
ca7d2feedb Some GetUserDetails cleanup. 2020-07-20 15:32:15 -04:00
9bc6698f58 Added community delete and remove. 2020-07-20 13:37:39 -04:00
a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 2020-07-20 10:56:40 -04:00
0a28ffb9c4 Private message delete and read extracted. 2020-07-20 00:29:44 -04:00
f0a223f337 Choices.destroy isnt working properly. 2020-07-18 19:36:45 -04:00
09f892a7fa Adding to sponsors list. 2020-07-17 15:27:06 -04:00
Dessalines
3b6b2c274d
Better user page loading indicators. Fixes #986 (#989) 2020-07-17 15:25:59 -04:00
Dessalines
7fdd41697e
Un-expand image when receiving new post. Fixes #979 (#988) 2020-07-17 15:25:52 -04:00
aaa850c6c9 Better user page loading indicators. Fixes #986 2020-07-17 11:48:06 -04:00
Dessalines
56741fcea5
Adding markdown buttons. Fixes #977 (#984) 2020-07-16 21:12:51 -04:00
Dessalines
9f36fd50b4
GetSite fixes. Fixes #975 (#978) 2020-07-15 10:00:55 -04:00
Dessalines
fc15276c10
Don't allow duplicate community names in API. #957 (#974) 2020-07-15 09:55:38 -04:00
Dessalines
78cb306c07
Don't allow community name editing. Fixes #964 (#973) 2020-07-15 09:53:52 -04:00
2c0928efe0 Change styling on comment-form no login-alert. 2020-07-14 13:21:31 -04:00
7d6985647f Some password reset UI fixes. Fixes #955 2020-07-14 13:17:51 -04:00
2f32d3e6df A few fixes. 2020-07-14 11:59:15 -04:00
derek
ef62f4698a ui.components: fix ts types, move user pagination to user details 2020-07-14 01:13:43 -04:00
derek
563a66b053 ui.components.sort-select: always parse to number 2020-07-13 20:14:01 -04:00
derek
602993ac76 ui.components.main: simplify url update logic 2020-07-13 20:14:01 -04:00
derek
47548905ce ui.components: fix selector components to work with browser buttons
Use getDerivedState to set state and only send back props
2020-07-13 20:14:01 -04:00
derek
195bf022bb ui.components.communities: deprecate componentWillReceiveProps 2020-07-13 20:14:01 -04:00
derek
5aa2a682ff ui.components.community: fix duplicate requests
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
af2141417a ui.components.search: fix duplicate requests
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
2640efb3f0 ui.components.main: fix duplicate requests
Deprecate componentWillReceiveProps for getDerivedStateFromProps
2020-07-13 20:14:01 -04:00
derek
f1d01f4fa0 ui.components: split user component up to fix duplicate requests
Replace componentWillReceiveProps with getDerivedState and pass state as props to new component
2020-07-13 20:14:01 -04:00
23688f17bb Making chat only sortable by new. 2020-07-13 15:20:46 -04:00
ea0881f87e Using community-link instead. 2020-07-13 10:39:15 -04:00
Ernest
9ad0a8825a Merge remote-tracking branch 'upstream/master' into add_post_title_to_comments_view 2020-07-13 08:45:57 +02:00
Ernest
e06d9a620c Add post title to user comments inbox view, comment_view, user_mention_view 2020-07-13 08:18:11 +02:00
c72acfd282 Fixing offset for mobile reflow. 2020-07-12 14:10:38 -04:00
Ernest
a5454fe82d Add post title to user overview and user comment list 2020-07-12 19:02:38 +02:00
Ernest
b037ff922c Add post title to comments view #948 2020-07-12 17:26:10 +02:00
ff2f70b1de Moving recent comments into main view as a chat select. Fixes #943 2020-07-12 00:58:42 -04:00
Dessalines
74655de618
Comment box focus (#947)
* Add fallback url to fuse devserver(closes #945)

* Only focus on reply commentform textareas. Fixes #944

Co-authored-by: Justin Hernandez <jmarthernandez@gmail.com>
2020-07-11 21:47:38 -04:00
f3dbfcd37b Adding number of comments for user search. 2020-07-11 19:25:17 -04:00
Justin Hernandez
f03161b7f9 Remove karma count from search results(fixes #853) 2020-07-11 15:57:13 -05:00
ernestwisniewski
4b30b6d764
Redirect error on create_post page for not logged in users. #937 (#938) 2020-07-11 10:13:45 -04:00
Tony Antonov
8d24659892
Forbid users to use empty titles for posts (#930)
- Add a regex that checks if string contains anything but whitespace
- Check for whitespace-only titles on post creation and edit
- Trim whitespace from titles before saving
- Add frontend validation to title
2020-07-10 21:15:53 -04:00
Dessalines
8e96507cb1
Replacing selectr with choices.js for community searching. (#932)
- Fixes #839
- Fixes #847
2020-07-10 14:01:45 -04:00
d271ae67aa Merge branch 'master' into remove_twemoji 2020-07-09 20:11:05 -04:00