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
Lim Chee Aun
57db8778a4
Adapt to new changes in group notifications API
...
Reference: https://github.com/mastodon/mastodon/pull/31214
2024-08-01 20:18:10 +08:00
Lim Chee Aun
a2b88f1cdd
Distinct both implementation of grouped notifications
2024-07-21 20:31:10 +08:00
Lim Chee Aun
b88376569e
Test this out for bridgy fed links
2024-07-21 19:06:38 +08:00
Lim Chee Aun
00e2ba0b34
Fix notification markers not working
...
Also the ids are getting confusing, so need to clean this up.
2024-07-21 18:59:38 +08:00
Lim Chee Aun
a2f7638257
Experimental opt-in server-side grouped notifications
2024-07-12 18:57:48 +08:00
Lim Chee Aun
2a91c005a1
Test fix self-recursive quote posts
2024-07-12 13:34:57 +08:00
Lim Chee Aun
a72400febf
Test support Hollo
2024-07-05 16:19:04 +08:00
Lim Chee Aun
046d3d323a
Enable unfurling when fetching reply hints
2024-06-27 22:05:16 +08:00
Lim Chee Aun
5ab0ea1b59
Remove usehooks dep
...
In the end, only used one hook out of so many hooks
2024-06-27 22:05:16 +08:00
Lim Chee Aun
1f8a8f8928
Use URL.parse with polyfill
2024-06-14 08:34:50 +08:00
Lim Chee Aun
901725793b
Try resolve threads' links if they work one day
2024-06-08 21:36:09 +08:00
Lim Chee Aun
04e1d60e54
Check vapidKey
2024-06-06 17:47:44 +08:00
Lim Chee Aun
1c01e1b0f4
Fix federated feed only showing remote posts
...
There's a mismatch parameter between Mastodon's and Pixelfed's APIs
2024-06-06 17:47:44 +08:00
Lim Chee Aun
224cad4d7f
Utilise the new batch fetch on Mastodon v4.3
2024-05-31 17:11:40 +08:00
Lim Chee Aun
7546b42c7c
Further improve lang detection perf
2024-05-29 15:26:58 +08:00
Lim Chee Aun
d16221e296
Test fix Pixelfed home timeline not showing reblogs
2024-05-28 13:44:24 +08:00
Lim Chee Aun
cd17ca0b42
Experiment: allow minimize composer
2024-05-24 12:30:20 +08:00
Lim Chee Aun
7be1e589ab
Support Pleroma's /notice unfurl
2024-05-19 16:23:12 +08:00
Lim Chee Aun
98b0ccf032
Default to floor rounding mode
2024-05-10 12:11:57 +08:00
Lim Chee Aun
77bc06545c
Handle inline images
2024-05-01 15:05:29 +08:00
Lim Chee Aun
5a448c8049
Fix infinite reloading
...
Comment these out because this used to fix an old bug with instances not loaded properly
2024-04-18 23:10:26 +08:00
Lim Chee Aun
9bf77fa97a
Mentions also need fixNotifications
...
It's also from notifications API
2024-04-18 17:15:51 +08:00
Lim Chee Aun
effbe189e1
Revert "Test upgrade react-hotkeys-hook for the keys fix"
...
This reverts commit 9285a0ba9a
.
2024-04-16 00:09:53 +08:00
Lim Chee Aun
e2f39596f0
Might as well add more supports
2024-04-15 19:58:59 +08:00
Lim Chee Aun
06c6360cae
More support for Pixelfed
2024-04-14 17:20:18 +08:00
Lim Chee Aun
e782cc0dde
Refactor set/get current account ID
...
And add fallback for standalone mode where session storage is not enough
2024-04-13 00:11:00 +08:00
Lim Chee Aun
9285a0ba9a
Test upgrade react-hotkeys-hook for the keys fix
2024-04-13 00:11:00 +08:00
Lim Chee Aun
a0d2037007
Early implementation of media-first UI experience
2024-04-11 17:18:17 +08:00
Lim Chee Aun
4e5940900e
Pixelfed-related fixes
2024-04-09 23:35:17 +08:00
Lim Chee Aun
708976a9e9
Anything Intl always need to extract out
...
and memoized
2024-04-03 19:48:18 +08:00
Lim Chee Aun
c18efef7b6
GIF picker
2024-04-02 17:51:48 +08:00