Commit graph

1537 commits

Author SHA1 Message Date
Nutomic 8b7a4e72af
Post scheduling (#2693)
* Post scheduling

Adds simple input for scheduling a post x minutes in the future.
Do you want to pull in a date picker library for this?

See https://github.com/LemmyNet/lemmy/pull/5025

* lint

* add date picker

* Adding i18n, and fixing some fields (#2694)

* fix edits

* cleanup

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-10-02 08:37:41 -04:00
Dessalines 6b5da8cfb1
Fixing titleOnly, PostSort, and CommentSort. (#2715)
* Fixing titleOnly, PostSort, and CommentSort.

* SortType, Tagline, Emojis (#2718)

* PostSortType

* Hide post sort types in comment view

* Tagline

* CustomEmoji

* Update lemmy-js-client to 0.20.0-alpha.17

* Prompt before leaving unsaved forms

* Add cancel buttons, only create taglines when saving

* Cleanup SortSelect

* Use markdown url for custom emojis

This prevent SSR and CSR from rendering different images after changing
the image of an emoji, already posted emojis will keep showing the old
image. This will also display the same image on different instances that
have overlapping custom emojis.

* Cleanup EmojisForm sorting

* Use existing CommentSortSelect

* Simpler sort type conversion

---------

Co-authored-by: matc-pub <161147791+matc-pub@users.noreply.github.com>
2024-10-01 14:40:02 -04:00
Pastel de N4ta 6057c96f0c
UX - Swap "Select Language" and "Cancel/Preview/Reply" button locations around in commentsReverse order of buttons in Reply TextArea (#2730)
* Reverse order of buttons in Reply TextArea

Fixes #1924

* Update markdown-textarea.tsx

Oopsie

* I'm so confused

Reverse last commit

* Update markdown-textarea.tsx

??

* Update markdown-textarea.tsx

* Lint markdown-textarea.tsx
2024-10-01 12:08:36 -04:00
SleeplessOne1917 8a500f3ddf
Fix jump to content (#2729) 2024-09-30 23:00:54 -04:00
matc-pub 626b18d478
fix date-fns dynamic import (#2716) 2024-09-25 14:07:37 +00:00
Dessalines 8a44c4d38f
Adding a post title only filter to the search page. (#2695)
* Adding a post title only filter to the search page.

- Also fixing restore data on unban.
- Accounting for newly removed block views.

* Only show post title button for All and Post searches.

* Addressing PR comments.
2024-09-20 13:20:39 +00:00
Dessalines 66c1376ac0
Separating login and register links for must login alert. (#2679)
- Fixes #2624
2024-08-28 16:40:03 -04:00
Dessalines 22eda995d3
Dont simplify cross-posts for a community feed. (#2678)
- Fixes #2104
2024-08-28 16:33:47 -04:00
Dessalines 2fdd42087a
Fixing peertube and ordinary video embeds. (#2676)
- Fixes #709
2024-08-27 15:35:12 -04:00
Dessalines 8c68ee450e
Changing sameSite cookie from Strict to Lax. (#2677)
- Fixes #2666
- Fixes #2601
2024-08-27 15:31:31 -04:00
Dessalines d4b6f29729
Remove show new post notifs setting. (#2675)
- Fixes #2667
2024-08-27 15:00:24 -04:00
Anon d69dd1531b
Fix memory leak around emojis on server render (#2674) 2024-08-27 13:10:19 -04:00
SleeplessOne1917 f456610930
Enable spellcheck for markdown text area (#2669)
* Enable spellcheck for markdown text area

* Another dep bump
2024-08-27 13:08:37 -04:00
Dessalines 9c4424f792
Add ability to fill magnet link title on post creation. (#2654) 2024-08-08 20:01:48 -04:00
SleeplessOne1917 0651b216d2
Registration application view (#2651)
* Fix tribute

* Group modals into common directory

* Make display modal

* Make registration applications viewable

* Remove potential crash

* Add translations
2024-08-04 11:33:23 -04:00
Dessalines 8d5e7de18e
Add torrent help (#2650)
* Updating translations.

* Adding a link to view all a user's moderation history from an item.

- Also making moderation history strings more detailed.

* Fix.

* Adding admin view moderation history to profile page.

* Adding a torrent help message.

* Updating translations.

* Updating translations.
2024-08-03 16:11:31 -04:00
Dessalines 999b083545
More moderation history (#2649)
* Updating translations.

* Adding a link to view all a user's moderation history from an item.

- Also making moderation history strings more detailed.

* Fix.

* Adding admin view moderation history to profile page.

* Adding admin view moderation history to profile page.
2024-08-03 14:56:19 -04:00
SleeplessOne1917 bee4395706
Fix tribute related bug (#2647)
* Fix tribute related bug

* fix api client error
2024-08-01 15:03:16 -04:00
Dessalines 6754c08902 Fixing 2024-08-01 10:45:58 -04:00
SleeplessOne1917 66277e6ece
Remove min and max length from password input when using login form (#2643) 2024-07-30 09:48:49 -04:00
Dessalines 72a3a3dbb9
Remove trending communities card from home. (#2639)
* Remove trending communities card from home.

- This proved after time to be pointless. I thought about keeping the
  create and explore communities buttons, but these are already in the
  navbar, and so just take up more pointless space.
- Fixes #2027
- Fixes #2007

* Forgot to remove trending loading skeleton.
2024-07-29 15:10:21 +00:00
SleeplessOne1917 e9c6e99165
Set data-bs-theme based on the presence of "dark" in theme name (#2638) 2024-07-29 09:11:05 -04:00
Dessalines 81dc9a2511
Fixing modlog filtering to allow admins and mods to filter by mod. (#2629)
- Fixes #2590

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-07-23 16:24:19 -04:00
SleeplessOne1917 5c3da58366
Fix issue from logo bugfix (#2620)
* Fix issue from previous bugfix

* Fix typo
2024-07-22 10:19:11 -04:00
SleeplessOne1917 5d124a3e14
Make more post params cross-postable (#2621) 2024-07-22 09:29:59 -04:00
SleeplessOne1917 cd15d3c132
Fix wonky comment action icon button alignment (#2622) 2024-07-22 09:29:26 -04:00
SleeplessOne1917 01c095d269
Prevent broken logo from crashing site (#2619)
* Prevent broken logo from crashing site

* Cache icons in memory to make site less vulnerable to DOS attacks

* Swap try and if blocks for apple touch icon
2024-07-21 14:56:57 -04:00
Dessalines ab51245ca5
Add rate limit info message. (#2563)
* Updating translations.

* Adding a rate limit info message.

- Fixes #1920

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-07-20 21:20:12 -04:00
Dessalines d6a31ec46f Fixing lint. 2024-07-15 10:02:55 -04:00
matc-pub b1604e9c9f
Fix getQueryString (#2558)
Browsers without size property for URLSearchParams always returned an
empty string.

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-19 15:37:04 -04:00
SleeplessOne1917 ede761f6c8
Leave admin confirmation (#2556)
* Add confirmmation modal for leaving admin team

* Add translations
2024-06-18 13:05:07 -04:00
SleeplessOne1917 24adbf71bb
Regenerate themes (#2554) 2024-06-18 08:27:22 -04:00
SleeplessOne1917 4293c5a6c3
Fix auto download bug (#2552) 2024-06-17 19:50:17 -04:00
SleeplessOne1917 2f91700074
Make uploads only viewable to oneself (#2540) 2024-06-14 21:16:17 -04:00
matc-pub 661a8000cd
Handle CrossPostParams when mounting CreatePost (#2521) 2024-06-08 11:45:56 -04:00
matc-pub 761cd7aa4e
Keep CreatePost mounted when updating URL, fixes focus resets. (#2520) 2024-06-07 15:51:35 -04:00
matc-pub 300ed5fe03
Move fetchPageTitle into componentWillMount and only call client side. (#2519) 2024-06-07 14:54:53 -04:00
SleeplessOne1917 c9b7f66925
Fix copy title from metadata (#2518)
* Fix copy title bug

* Refactor

* Update translations

* Fix it for real this time

* Remove query params when field is empty
2024-06-07 13:21:04 -04:00
SleeplessOne1917 7003b564a3
Create post query params (#2515)
* Allow create post page form inputs to be populated from query params

* Fix issue with cross post params.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-06-06 22:56:17 -04:00
Dessalines 18c3f3975f
Fix 502 error on initial settings page load. (#2498)
- Needed to wrap the fetchThemeList in an isBrowser check.
- Fixes #2497
2024-06-03 22:31:54 +00:00
matc-pub 02fcfa26ee
Fix some submit button issues (#2487)
* Prevent PostForm submit button spam

* Keep CreatePost PostForm visible during submission

* Keep PostListing PostForm visible during submission

* Keep PostForm navigation warning enabled during submission

* Remove `finished` from MarkdownTextAreaProps

* Handle CommentForm submission failures

* Keep CommentForm navigation warning enabled during submission

* Handle PrivateMessageForm submission failures

* Bypass navigation warning for successful CreatePrivateMessage

* Fix absolute import, add eslint rule

* Cleaner handleCommentSubmit

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-02 11:46:32 -04:00
matc-pub b7fe70d8c1
Render more while reloading only some resources (#2480)
* AdminSettings remove unused currentTab state

* Fix amAdmin check in reports fetchInitialData

* Make CreatePost render earlier

* Include children of auth and anonymous guard in first render.

* Convert DidMount to WillMount where things don't depend on the DOM

`componentDidMount` is called after the first render. A lot of
components used it to call `setState`, which causes a second render.

* Keep route components mounted during same route navigation

Not sure why this wasn't the case without this change. The only
difference here is that the same array is reused in every render.

* Disable mounted same route navigation by default

* Enable mounted same route navigation for some routes

* Render more while loading

* Prettier markup

* Make Post use query params and reload comments independently

* Fix issue with <Prompt /> for forms that remain mounted after "leaving".

* Make Search not rerender the results on every keystroke

* Discard old requests

These used to (mostly) arrive at the old already unmounted components.
Now they would render briefly until the latest response is received.

* Move non breaking space to modlog

* Make show optional for modals
2024-05-22 15:46:13 -04:00
SleeplessOne1917 1f7c8dd1b0
Fix video thumbnail override issue (#2474)
* Fix video thumbnail override issue

* Cleanup

* Make thumbnails always show up, even on mobile

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-05-21 14:25:21 -04:00
SleeplessOne1917 139514cac8
Use non-deprecated QR library (#2475) 2024-05-21 14:20:32 -04:00
renovate[bot] 7875a793b3
Update dependency @types/markdown-it to v14 (#2470)
* Update dependency @types/markdown-it to v14

* Fixing markdown import.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-05-15 13:46:26 -04:00
SleeplessOne1917 da5a740fd4
Fix Language not allowed infinite loading on failed post (#2457)
* Fix language not allowed bug

* Add translations
2024-05-14 22:35:54 -04:00
SleeplessOne1917 b793697f68
Refresh admin settings on submit (#2456) 2024-05-14 09:48:59 -04:00
SleeplessOne1917 d705f3685f
Fix leap year issue (#2453)
* Fix leap year issue

* Show same cake day date independent of timezone (#2455)

* Show same cake day date independent of timezone

* Remove commented out assertions

---------

Co-authored-by: matc-pub <161147791+matc-pub@users.noreply.github.com>
2024-05-13 22:45:33 -04:00
SleeplessOne1917 17097ecd34
Fix bug where newly created communities cannot be edited until refresh (#2451)
* Fix bug where newly created communities cannot be edited until refresh

* Fix bug with slightly less crappy kludge than before
2024-05-10 11:04:31 -04:00
SleeplessOne1917 b0a711a4ac
Fix bug where UI breaks trying to send a DM (#2452) 2024-05-10 11:01:34 -04:00