Commit graph

325 commits

Author SHA1 Message Date
Scott Feeney
22f0703162 Store nodeInfo separately + other feedback 2024-10-10 17:31:16 -07:00
Scott Feeney
ad0ab0c845 Shrink the size of the feature detection change 2024-10-10 16:59:37 -07:00
Scott Feeney
839023cefc Use NodeInfo to detect features if available
For Mastodon <=4.3 (all current stable releases of Mastodon), the
NodeInfo request will always fail due to mastodon/mastodon#23135 and
fall back to the existing behavior. For other server software, this will
allow for more accurate checking of feature availability.

Fixes #808: adds support for exclusive lists with GoToSocial 0.17+.
2024-10-10 16:59:37 -07:00
Lim Chee Aun
48537742a2 Time to try fetchPriority=low 2024-10-11 02:11:08 +08:00
Stefano Pigozzi
e94b8edacc
Do not save state between regex executions
Fixes #843.

See https://stackoverflow.com/questions/2630418/javascript-regex-returning-true-then-false-then-true-etc for more information!
2024-10-04 13:19:09 +02:00
Lim Chee Aun
65bd6fb1ef It's micro-optimization week
Includes experimental replacing dangerouslySetInnerHTML with setting actual DOM
2024-09-25 17:18:30 +08:00
Lim Chee Aun
80d4a45a65 s/jsx/js extension
Somehow vscode refactor "Move to a new file" preserves the jsx extension
2024-09-23 12:43:55 +08:00
Lim Chee Aun
c8abb95e8e Improve grouping for server-side grouping
Migrate from v2_alpha to v2
2024-09-22 13:55:37 +08:00
Lim Chee Aun
4cc6a6a12c Forgot to commit this 2024-09-22 13:54:43 +08:00
Lim Chee Aun
8f6b4c6420 Try non-blocking init 2024-09-16 19:11:45 +08:00
Lim Chee Aun
4ae1c38269 Battle against slow startup time
Seems like Intl and tinyld could be the cause
2024-09-16 17:39:06 +08:00
Lim Chee Aun
572358f0f4 Another attempt 2024-09-16 16:13:00 +08:00
Lim Chee Aun
942dac4be0 Let's benchmark deeper 2024-09-16 15:32:42 +08:00
Lim Chee Aun
07e72be5bb Try delay run localeTargetLanguages 2024-09-10 12:33:05 +08:00
Stefano Pigozzi
e2d97916af
Remove log 2024-09-07 03:27:57 +02:00
Stefano Pigozzi
33d6edda38
Split local-visibility-post feature into @pleroma and @akkoma variants
Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
2024-09-07 03:14:50 +02:00
Stefano Pigozzi
7f06187d75
Merge remote-tracking branch 'origin/main' into feature/akkoma-local-only
# Conflicts:
#	src/locales/en.po
2024-09-05 15:46:56 +02:00
Stefano Pigozzi
72d735916e
Rename @pleroma/local-only to @pleroma/local-visibility-post 2024-09-05 10:19:53 +02:00
Stefano Pigozzi
bf792c77f4
Remove unused notContainAnyOma regex 2024-09-05 10:19:01 +02:00
Lim Chee Aun
ba6738e1f5 Use PHANPY_WEBSITE as redirect_uri 2024-09-04 17:52:53 +08:00
Lim Chee Aun
925319b8bb Fix Threads url regex 2024-09-02 21:01:43 +08:00
Lim Chee Aun
9fd17ad5e6 Check code_challenge_methods_supported too 2024-08-31 23:10:38 +08:00
Lim Chee Aun
a75e816e6c Try handle Threads' link 2024-08-29 16:50:07 +08:00
Stefano Pigozzi
8f6d1da008
Add support for Pleroma instances 2024-08-28 13:17:46 +02:00
Lim Chee Aun
7c56b64e8a OAuth PKCE is in.
Reference PR: https://github.com/mastodon/mastodon/pull/31129
2024-08-27 13:50:03 +08:00
Lim Chee Aun
1d69a1da71 Get vapid key to instance config 2024-08-27 11:46:29 +08:00
Lim Chee Aun
5d2f8ffddc Use secure same-site session cookie instead of sessionStorage 2024-08-25 16:35:07 +08:00
Lim Chee Aun
482d8c3f2e Better locale matching 2024-08-23 18:00:04 +08:00
Lim Chee Aun
9b2c01fb02 Fix locale matching 2024-08-22 19:24:45 +08:00
Lim Chee Aun
25d73c4b46 Show all locales, <50% complete will be called devLocales
Dev locales show on dev or based on env var PHANPY_SHOW_DEV_LOCALES
2024-08-22 00:12:47 +08:00
Lim Chee Aun
cea06f32fc Make sure nice-date-time also match the more local locale 2024-08-22 00:10:48 +08:00
Stefano Pigozzi
1e1d6e40bc
Add support for local instance posts
A new platform feature is defined, `@akkoma/local-only`, which is marked as present only if the string `akkoma` is found in the instance version string.

If this feature is supported, a new post visibility option is added to the post compose visibility selector, "Local instance", which sets the visibility to `"local"`.

The post viewer is also updated accordingly; while local-only posts could already be seen previously, they didn't have anything written in the `.extra-meta` section, and didn't display a visibility icon.

The `building` icon has been selected as the symbol for "Local instance" posts, as it's already used in the main menu to denote the Local timeline.
2024-08-20 19:00:10 +02:00
Lim Chee Aun
0dbc76c40a Fix my dumb code 2024-08-20 20:34:42 +08:00
Lim Chee Aun
3b15768538 Handle kab-KAB → kab rename 2024-08-20 20:18:16 +08:00
Lim Chee Aun
3902db5c0b Handle kab issue temporarily 2024-08-20 20:08:09 +08:00
Lim Chee Aun
2db909d7af Try/catch all intl stuff 2024-08-20 20:08:09 +08:00
Lim Chee Aun
6fe922d1cf Revert "Fix PHANPY_DEFAULT_LANG not working"
This reverts commit b286511f44.
2024-08-19 18:57:25 +08:00
Lim Chee Aun
b286511f44 Fix PHANPY_DEFAULT_LANG not working
It needs to be used before navigator.language
2024-08-19 10:19:52 +08:00
Lim Chee Aun
6c0f0a4127 More fallbacks for Intl.DisplayNames 2024-08-16 11:14:16 +08:00
Lim Chee Aun
1a3751ff16 Forgot to set lang attr on html 2024-08-15 15:33:15 +08:00
Lim Chee Aun
f359d36e9b Sync the list of locales between config & app code 2024-08-14 17:16:56 +08:00
Lim Chee Aun
e5815686a9 Add try/catch fallback if file fails to load
Could be the file is not there or something wrong with the connection. Still good to include this try/catch
2024-08-14 15:02:45 +08:00
Lim Chee Aun
d9bc18f557 Oops, accidentally add this locale when it's not ready yet 2024-08-14 15:00:15 +08:00
Lim Chee Aun
2ab921d6db Load en by default, activate it later 2024-08-14 09:42:12 +08:00
Lim Chee Aun
b28fdcb0fa Fix wrong passing of locale values in Intl.DisplayNames 2024-08-14 09:41:31 +08:00
Lim Chee Aun
c2e6d732c4 Initial i18n dev
Expecting bugs!
2024-08-13 15:26:23 +08:00
Lim Chee Aun
ff29e93b4f Fix RTL observer not working 2024-08-10 10:04:44 +08:00
owl
225eaf4a2d
Pass undefined to Intl.DisplayNames, so '*' doesn't break it 2024-08-05 14:14:03 +02:00
Lim Chee Aun
f05e3012e3 Preliminary step for RTL 2024-08-04 13:32:46 +08:00
Lim Chee Aun
cf2461add5 Better checks 2024-08-04 13:32:46 +08:00