9329 Commits

Author SHA1 Message Date
taichi221228
a172892470 Refactor emoji utils in mastodon features
The refactoring of emoji utilities in the mastodon feature has been done to enhance readability and maintenance of the code. The types and functions involved in sanitizing and getting data have been clarified, including the introduction of an interface for skin tones. Additionally, erroneous typescript comments have been removed and the emojis type has been exported for further use.
2024-11-22 13:38:34 +01:00
taichi221228
5b34a4e347 Add comments for skin_tone in emoji_utils.ts
This commit adds detailed comments explaining the usage of `skin_tone` in emoji_utils.ts, noting its absence in the type definition link and the need for a separate type with DefinitelyTyped. It also highlights potential mismatch issues between versions of `@types/emoji-mart` and `emoji-mart`, given they have different maintainers and packages.
2024-11-22 13:38:34 +01:00
taichi221228
4845f5a50d Refactor and improve emoji sanitization function
The emoji sanitization function has been refactored for better handling of emoji variations. New types have been imported from 'emoji-mart', allowing for a more precise type assignment for the emoji input and output. Bound checking operations have been adjusted to better accommodate and handle custom emojis and skin variations.
2024-11-22 13:38:34 +01:00
taichi221228
562c8778fb Refactor unifiedToNative function in emoji_utils
The unifiedToNative function in emoji_utils.ts has been refactored for cleaner coding practices. Lint disabling has been moved to a different part of the code, and type checking has been revised to specify that the input unified is of type Emoji['unified']. The function's variables have been updated to const for better securities against undesired changes.
2024-11-22 13:38:34 +01:00
taichi221228
77a0621ecc Remove unnecessary stringFromCodePoint function polyfill in emoji_utils
Removed the unnecessary stringFromCodePoint function polyfill from the emoji_utils.ts file. Instead, we use the built-in JavaScript function String.fromCodePoint to simplify the code.
2024-11-22 13:38:34 +01:00
taichi221228
88afeb3654 Refactor buildSearch function in emoji_utils.ts
The buildSearch function has been refactored for better coding practices. More explicit typings and declaration were used, and the logic related to array search has been simplified for better readability. The 'eslint-disable' comment line was moved to a more appropriate location after these changes.
2024-11-22 13:38:34 +01:00
taichi221228
ac2b7a6cfb Add '@ts-expect-error' to suppress TypeScript errors 2024-11-22 13:38:34 +01:00
taichi221228
9c4f3ecdf6 Rename emoji_utils.js to TS 2024-11-22 13:38:34 +01:00
Oliver Geer
0ad5c212c1
Fix accounts table long display name (#29316) 2024-11-22 09:50:47 +00:00
Christian Schmidt
9ebed5d410
Fix CSS warnings (#32266) 2024-11-22 08:58:04 +00:00
github-actions[bot]
47190087f8
New Crowdin Translations (automated) (#33020)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-22 08:44:09 +00:00
Eugen Rochko
d75088d699
Fix pushing hashtag-followed posts to feeds of inactive users (#33018) 2024-11-22 08:30:57 +00:00
Christian Schmidt
0518613dd7
LinkDetailsExtractor adjustments (#31357) 2024-11-22 08:00:14 +00:00
Claire
4bfb8887bf
Fix duplicate notifications in notification groups when using slow mode (#33014) 2024-11-21 16:10:07 +00:00
Eugen Rochko
62603508c7
Change design of lists in web UI (#32881) 2024-11-21 16:10:04 +00:00
Christian Schmidt
7385016837
rel="me" check should be case-insenstive (#32238) 2024-11-21 14:37:25 +00:00
Claire
dbddd40c1c
Add stop-gap antispam code (#32981) 2024-11-21 14:06:57 +00:00
Emelia Smith
4517e18b79
Update dependency doorkeeper to v5.8.0 (#33000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 13:48:30 +00:00
github-actions[bot]
e4d5cc0ca6
New Crowdin Translations (automated) (#33010)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-21 10:58:45 +00:00
Eugen Rochko
420ed155ba
Fix wrong video dimensions for some rotated videos (#33008) 2024-11-21 10:58:04 +00:00
Paulo Vilarinho
2526b32ad3
block scheduled status from frozen users (#30729) 2024-11-20 19:06:41 +00:00
Eugen Rochko
683db3ab25
Add ability to middle-mouse click posts in web UI (#32988) 2024-11-20 15:56:35 +00:00
Claire
e68b26c8df
Fix posts made in the future being allowed to trend (#32996) 2024-11-20 12:41:22 +00:00
github-actions[bot]
4252b13a4b
New Crowdin Translations (automated) (#32990)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-20 08:24:50 +00:00
Claire
30e9c7137b
Fix error when viewing statuses to deleted replies in moderation view (#32986) 2024-11-19 20:21:12 +00:00
Matt Jankowski
37f00fb018
Use hash arguments to group when possible (#32916) 2024-11-19 10:36:02 +00:00
Eugen Rochko
2b5faa2ba3
Change lists to reflect added and removed users retroactively (#32930) 2024-11-19 10:04:12 +00:00
Matt Jankowski
f2976ec9a4
Extract Notification::Groups concern (#32968) 2024-11-19 10:02:01 +00:00
github-actions[bot]
9fc2fc2251
New Crowdin Translations (automated) (#32969)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-19 09:05:39 +00:00
Eugen Rochko
e856838e0c
Fix notification polling showing a loading bar in web UI (#32960) 2024-11-19 08:57:12 +00:00
Matt Jankowski
425982841d
Use group/count approach in annual report classes (#32914) 2024-11-19 08:51:34 +00:00
Matt Jankowski
da826fe959
Use hash arguments to order when possible (Rails 7.2) (#32915) 2024-11-18 15:07:53 +00:00
Matt Jankowski
477412d62a
Use hash arguments to select when possible (Rails 7.2) (#32917) 2024-11-18 14:58:45 +00:00
Matt Jankowski
c0c34d35e2
Move self destruct check to config_for and add constant for verifier string (#32943) 2024-11-18 09:57:16 +00:00
Eugen Rochko
911d7dbbf6
Fix min_id and max_id causing error in search API (#32857) 2024-11-18 09:37:01 +00:00
Matt Jankowski
c511cbcd6c
Extract constants for controller LIMIT queries (#32921) 2024-11-18 09:23:38 +00:00
Matt Jankowski
16addf47c7
Reduce long lines in relationships/show view (#32922) 2024-11-18 09:23:07 +00:00
github-actions[bot]
02985aae69
New Crowdin Translations (automated) (#32927)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-18 09:20:37 +00:00
Jeong Arm
60801ab914
Add missing autofocus on boost modal (#32953) 2024-11-18 08:48:27 +00:00
Matt Jankowski
1c6f53e70f
Use with_options blocks in Associations concern (#32840) 2024-11-18 08:07:18 +00:00
Matt Jankowski
a1ac2a73ff
Remove remnants of embed views (#32419) 2024-11-16 20:48:10 +00:00
Matt Jankowski
319109029d
Fix logic in "last used at per application" oauth token list (#32912) 2024-11-15 15:52:37 +00:00
Matt Jankowski
297ce9ef44
Move body class to shared partial for web app controller concern views (#31797) 2024-11-15 15:49:26 +00:00
Shlee
34d7c9edae
Rails 7+: primary_abstract_class recommendation (#32909) 2024-11-15 15:37:30 +00:00
Claire
0838cf1e05
Fix domain attribution field having autocorrect and autocapitalize enabled (#32903) 2024-11-15 13:37:45 +00:00
github-actions[bot]
c546aa57cb
New Crowdin Translations (automated) (#32900)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-15 10:30:11 +00:00
Emelia Smith
ddfb3d123b
Improve display of statuses in admin panel (#30813) 2024-11-15 09:38:01 +00:00
Claire
2de018256a
Fix filters not being correctly applied to boosted posts (#32895) 2024-11-14 19:42:43 +00:00
Matt Jankowski
766358e52b
Add coverage for malformed version cleanup in SoftwareUpdateCheckService, add helper query methods (#32876) 2024-11-14 14:03:57 +00:00
Matt Jankowski
62d65504f6
Add DomainResource class to wrap MX lookup/normalize (#32864) 2024-11-14 13:47:29 +00:00