Commit graph

81 commits

Author SHA1 Message Date
Claire
a7e6f3df20 Fix import order with ESLint
Port 7b5a274836 to glitch-soc
2023-05-28 16:38:10 +02:00
Renaud Chaput
d0545c950c [Glitch] Enforce stricter rules for Typescript files
Port 85b3823e66 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-05-09 22:56:26 +02:00
Plastikmensch
ef5df7fc66 Reset language to default when cancelling a reply (#2114)
When cancelling a reply, the language was still set to the language of the replied to toot.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
2023-05-07 18:45:10 +02:00
Claire
e390c26429 Fix some of the Javascript linting issues, as well as bugs and unneeded divergences with upstream (#2208)
* Run eslint --fix

* Fix linting issues in video player and reduce divergences with upstream

This includes a behavior change of not auto-looping videos anymore. I don't
remember loops being ever intended, and they have been removed from upstream
a while ago, but we somehow missed the change.

* Fix lint issues in `app/javascript/flavours/glitch/selectors/index.js`

Those were basically caused by dead code that isn't present upstream, so
that brings us closer to upstream as well.

* Fix linting issue and bug in streaming/index.js

* Fix linting issues in config/webpack/shared.js

* Fix unused import in flavours/glitch/features/ui/index.js

* Fix linting issues and reduce divergences from upstream in flavours/glitch/features/ui/components/video_modal.jsx

* Fix linting issues in flavours/glitch/reducers

* Fix linting issues in glitch-soc onboarding modal

* Fix linting issues in flavours/glitch/features/ui/components/navigation_panel.jsx

* Remove dead code for unused local setting navbar_under

* Fix various linting issues

* Fix linting issues in flavours/glitch/components/scrollable_list.jsx and reduce divergences with upstream
2023-05-07 18:22:25 +02:00
Dean Bassett
6c64af449c [Glitch] Fix case-sensitive check for previously used hashtags
Port 28bc6265bf to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-02-13 20:05:36 +01:00
Claire
b525ce4bf9 [Glitch] Fix attached media uploads not being cleared when replying to a post
Port 3c1e48d304 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-02-13 20:04:45 +01:00
Dean Bassett
ab546780eb fix hashtag ordering (#2107)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2023-02-12 18:58:02 +01:00
Akira Ouchi
84e332a9a1 [Glitch] autofocus the compose form again on /share
Port bbcbb2dd7f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-02-03 20:58:15 +01:00
Claire
5d7c0b3254 [Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what
9a5233f107 and a few others did.
2023-02-03 20:52:07 +01:00
Claire
c0a441d90f [Glitch] Add support for editing media description and focus point of already-posted statuses
Port 42aa864c84 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-01-18 17:52:45 +01:00
Claire
17161bd243 [Glitch] Fix being stuck in edit mode when deleting the edited status
Port f5d8ba958f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-12-15 21:06:00 +01:00
Claire
9af13fa961 [Glitch] Change default reply language to be default language when replying to a translated reply
Port 0e7709efce to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-12-14 09:14:50 +01:00
Claire
ad613b56cf Fix content-type being reset when editing toots (#1993)
Fixes #1990
2022-12-04 17:58:10 +01:00
kedama
b2f452000b [Glitch] Fix status mismatch of sensitive check
Port 691b827c87 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-28 11:53:21 +01:00
Claire
56234c7110 [Glitch] Fix media metadata being only editable once
Port 088c365559 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-14 18:32:33 +01:00
Claire
06c5841fbd [Glitch] Add the ability to edit media attachment metadata for any unattached media
Port d55054b166 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-12 14:01:47 +01:00
Claire
e9aa9c43ec [Glitch] Fix redrafting a currently-editing post not leaving edit mode
Port 793cc2096d to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-11-08 16:26:25 +01:00
Eugen Rochko
b12ffe1fbf [Glitch] Fix upload progress not communicating processing phase in web UI
Port 89ef2cf044 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-10-30 18:30:58 +01:00
Claire
bf6b66bf32 Move more modules from flavours/glitch/utils to flavours/glitch 2022-10-11 12:25:45 +02:00
Claire
874cd0e883 Rename flavours/glitch/util into flavours/glitch/utils 2022-10-11 11:31:11 +02:00
Claire
3bf201ddaa Move flavours/glitch/util/initial_state to flavours/glitch/initial_state 2022-10-11 10:17:04 +02:00
Claire
c3842a700f [Glitch] Change language to be carried over on reply
Port c5eabffe34 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-06-02 11:09:19 +02:00
Eugen Rochko
c0a5c88364 [Glitch] Add language dropdown to compose in web UI
Port e4a9aa1ab4 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-05-16 23:06:29 +02:00
Eugen Rochko
838f800808 [Glitch] Add editing for published statuses
Port cb76142d9e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2022-02-10 19:10:20 +01:00
David Sterry
8962f00ec8 [Glitch] ignore hashtag suggestions if they vary only in case
Port 65ee707755 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2021-12-16 16:48:42 +01:00
Claire
c58ad61ffc [Glitch] Add confirmation modal when closing media edit modal with unsaved changes
Port 4166ecfedb to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2021-07-25 12:59:03 +02:00
Claire
41f58c2c32 Fix local-only toggle being buggy when replying to remote toot 2021-05-12 12:38:21 +02:00
Thibaut Girka
31a9c14a5a Fix threaded mode
Fixes #1414
2020-09-01 09:37:17 +02:00
Thibaut Girka
4b8097e67c Fix replying to some remote toots switching to local-only 2020-08-29 19:57:32 +02:00
Thibaut Girka
43bceb4337 Fix local-only flag not necessarily being preserved on delete & redraft 2020-08-12 00:02:44 +02:00
Eugen Rochko
409d00d256 [Glitch] Add ability to choose media thumbnail in web UI
Port 825f73c3f9 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-07 15:58:49 +02:00
ThibG
0a02eade54 [Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW
Port 41ca3cdb37 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-04-02 20:45:46 +02:00
Thibaut Girka
40e87be793 Make prepending “re: ” to CWs on reply optional 2020-01-07 19:05:31 +01:00
ThibG
d9f15fb6ed [Glitch] Fix pending upload count not being decremented on error
Port 9b3ebf9166 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-30 17:37:16 +01:00
ThibG
c98e2faa41 [Glitch] Fix WebUI allowing to upload more items than the limit
Port 83a88426ca to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-11-07 14:31:53 +01:00
ThibG
82548d9403 [Glitch] Avoid storing audio and video file data in memory
Port f3d4db653c to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-30 15:58:29 +02:00
ThibG
c77eb90fa6 [Glitch] Use blob URL for Tesseract to avoid CORS issues
Port d6b6267c27 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-30 15:58:29 +02:00
ThibG
7d388731dc [Glitch] Restore hashtag suggestions from local tag history
Port d94a4763f6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Eugen Rochko
f0c559250c [Glitch] Fix emoji autosuggestions
Port 32d2260a8c to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Eugen Rochko
cc3ca37cda [Glitch] Add autosuggestions for hashtags
Port 450b8a70a5 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Thibaut Girka
79e97d71d4 Do not keep polls pre-filled in thread mode 2019-07-15 00:41:09 +02:00
ThibG
b8d7f860ca [Glitch] When deleting & redrafting a poll, fill in closest expires_in
Port a55fd40802 to glitch-soc
2019-07-04 16:24:48 +02:00
ThibG
c15ff07c69 [Glitch] Fix “mark as sensitive” not being used in delete & redraft
Port 024ec0759c to glitch-soc
2019-06-07 17:39:46 +02:00
りんすき
c65b14059a [Glitch] Fix composer route opening when not needed
Port 9ff2739fb5 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-26 13:50:15 +02:00
Thibaut Girka
b83cdc9b02 Export fallback content type and use it as default in WebUI 2019-05-17 23:51:14 +02:00
Thibaut Girka
8a49df8ede Support proper content-type in Delete & Redraft 2019-05-17 23:51:14 +02:00
KokaKiwi
08a981dd25 Add status content type dropdown to compose box.
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-17 23:51:14 +02:00
ThibG
c8195e2da1 [Glitch] Use raw content if available on Delete & Redraft
Port front-end changes from 2a917031c9 to glitch-soc
2019-05-11 21:46:23 +02:00
Thibaut Girka
5a8b820767 Fix regression with textarea's caret position when selecting a suggestion 2019-04-27 21:40:42 +02:00
Thibaut Girka
0541e4ad21 Refactor selectComposeSuggestion so that different paths can be updated 2019-04-26 22:38:03 +02:00