Johann150
38df8dc734
client: set display name limit same as server
...
Changelog: Fixed
2022-12-04 15:35:43 +01:00
Johann150
11e4a8cb9b
remove erroneous space
2022-12-04 15:34:05 +01:00
Johann150
d1e0d79c19
client: unify different error dialogs
...
Changelog: Fixed
2022-12-04 14:27:53 +01:00
Johann150
946e862ecd
server: implement OAuth 2.0 Authorization Code grant
...
Changelog: Added
Reviewed-on: FoundKeyGang/FoundKey#205
2022-12-04 14:06:36 +01:00
Johann150
97052b1f61
server: refactor fromHtml attribute handling
...
Also try to recognize owncast hashtag links.
2022-12-04 03:43:22 +01:00
Johann150
cda9197700
server: increase nodeinfo caching
...
Changelog: Changed
2022-12-04 03:26:50 +01:00
Chloe Kudryavtsev
2dde8273e2
implement separate web workers
...
Reviewed-on: FoundKeyGang/FoundKey#252
2022-12-03 13:33:23 +00:00
Johann150
7924d5d01b
add oauth documentation
2022-12-03 10:38:33 +00:00
Johann150
de927e1f30
server: handle invalid URLs in comparison
2022-12-03 10:38:33 +00:00
Johann150
bdcec2b8a7
server: implement OAuth discovery (RFC 8414)
2022-12-03 10:38:33 +00:00
Johann150
5291f29581
implement OAuth PKCE
...
This implements Proof Key for Code Exchange a.k.a. RFC 7636.
2022-12-03 10:38:33 +00:00
Johann150
15b3ab6d13
check redirect URIs
2022-12-03 10:38:33 +00:00
Johann150
79e3c20189
server: allow to grant tokens with more restricted privileges
...
This also simplifies API authentication a bit by not having to fetch
the App that is related to a token.
The restriction of 1 token per app is also lifted. This was not a
constraint in the database but it was enforced by the code and
kinda wrong schema the auth_session table had.
2022-12-03 10:38:32 +00:00
Johann150
2f2e6a58a4
docs: read scope descriptions from locale strings
2022-12-03 10:38:32 +00:00
Johann150
c5568cfdf3
client: fix auth page layout
...
This also includes better rendering when no permissions are requested.
Also removed the app's id from the page as it makes no sense to show
this to a user.
Changelog: Fixed
2022-12-03 10:38:32 +00:00
Johann150
c65fdebe26
server: add missing auth/deny endpoint
...
This endpoint is hinted at in the client, but is not actually defined
in the backend. This commit defines it.
2022-12-03 10:38:32 +00:00
Johann150
418c88bb8f
expire AuthSessions after 15 min
2022-12-03 10:38:32 +00:00
Johann150
2b19b34196
update OpenAPI docs to OAuth
2022-12-03 10:38:32 +00:00
Johann150
7db7fdd9e2
add API route for OAuth access token retrieval
2022-12-03 10:38:32 +00:00
Johann150
a13e956af0
make authorization token granting OAuth 2.0 compatible
...
This is basically a shim on top of the existing API.
Instead of the 3rd party, the web UI generates the authorization session.
The data that the API returns is slightly adjusted so that only one
API call is necessary instead of two.
2022-12-03 10:38:32 +00:00
Norm
18cf228f89
server: readd "fetch meta only once in skippedInstances""
...
This reverts commit e446a11bb7
.
Turns out this wasn't really the source of the referenced issue and
someone was able to run with the original commit fine, so adding this
back for now.
2022-12-03 05:13:30 -05:00
Norm
bdf2e14a73
server: fix TypeError in registerOrFetchInstanceDoc
...
Changelog: Fixed
2022-12-03 04:01:51 -05:00
Norm
c5cf167ffa
server: fix ReferenceError: meta is undefined
...
Ref: e446a11bb7
Changelog: Fixed
2022-12-03 02:18:08 -05:00
Norm
e446a11bb7
Revert "server: fetch meta only once in skippedInstances"
...
This reverts commit 81d63720f2
since it
seems to cause a ReferenceError for some reason.
Ref: https://toot.site/@jeder/109447151582516733
2022-12-03 02:13:18 -05:00
Johann150
5b6b2b214d
Translated using Weblate (German)
...
Currently translated at 100.0% (1214 of 1214 strings)
Co-authored-by: Johann <johann@qwertqwefsday.eu>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/de/
Translation: Foundkey/foundkey
2022-12-02 21:17:39 +00:00
Johann150
194fff3603
activitypub: hashtags no longer displaying as links
...
Some hashtags sent from Mastodon were erroneously displayed as links.
This is because Mastodon seems to mangle hashtags containing non-ASCII
codepoints (such as e.g. umlauts). This lead to the previous code which
depended on the list of hashtags to not recognize a hashtag. Instead,
the `rel="tag"` microformat is recognized instead.
This makes the `htmlToMfm` wrapper function unnecessary so it was removed.
Changelog: Fixed
2022-12-02 19:31:57 +01:00
Johann150
b4080d788d
slight refactoring & translating japanese
2022-12-02 19:00:58 +01:00
Johann150
e49b8d0ef3
server: remove unnecessary apLogger aliases
2022-12-02 18:58:19 +01:00
Johann150
7d3d0f858c
increment versions in package.json
2022-12-02 16:59:47 +01:00
Johann150
5ec34577c0
update changelog
2022-12-02 16:59:35 +01:00
Norm
81d63720f2
server: fetch meta only once in skippedInstances
2022-12-02 09:26:14 -05:00
Norm
5e6b51094e
server: fix instance skipping
...
This should actually make instance skipping work properly since
shouldBlockInstance is now properly awaited on now.
2022-12-02 09:10:56 -05:00
Johann150
9ad37a12f8
server: fix rendering of Follow activity when removing follow
...
closes FoundKeyGang/FoundKey#263
Changelog: Fixed
2022-12-01 21:49:38 +01:00
Norm
e10700a2be
Merge pull request 'server: add wildcard matching to blocked hosts' ( #260 ) from wildcard-block-v2 into main
...
Reviewed-on: FoundKeyGang/FoundKey#260
2022-12-01 20:12:18 +00:00
Norm
dc7533baa4
Merge pull request 'server: Add recursion limit to resolver' ( #261 ) from recursion-limit into main
...
Reviewed-on: FoundKeyGang/FoundKey#261
2022-12-01 20:11:40 +00:00
Johann150
721a327192
fixup: remove unused import
2022-12-01 20:46:46 +01:00
Johann150
936cbf900b
use default argument value
...
This unifies the style with the other function in that file and fixes
the lint "no-param-reassign".
2022-12-01 20:32:57 +01:00
Mia Herkt
bc62d0ba9f
client: update emoji list
...
This corrects the gender-specific variants in general, adds a few
missing ones, replaces names that are just Unicode codepoints with
actual names, and makes the keywords more consistent.
Some data for this was taken from the annotations in the Unicode
CLDR version 42.
Reviewed-on: FoundKeyGang/FoundKey#262
2022-12-01 20:10:14 +01:00
Johann150
749015807a
client: also autocomplete flag emoji
...
Changelog: Changed
2022-12-01 20:08:55 +01:00
Norm
b3e34795c0
require punycode conversion beforehand for admins
2022-12-01 12:07:43 -05:00
Norm
a35c98bbd5
server: encode non-ascii domains in punycode in matchHost
2022-12-01 11:34:11 -05:00
Norm
075e251822
server: add wildcard matching to blocked hosts
...
This adds in wildcard matching. For instance:
- `*.bad.tld` will match: `very.bad.tld`
- `bad.*` will match: `bad.something`
- `*.bad.*` will match: `very.bad.evil`
Changelog: Changed
2022-12-01 11:29:02 -05:00
Norm
b030ced51c
docs: Replace references of misskey with foundkey in nginx guide
2022-12-01 04:50:30 -05:00
Derek Schmidt
11a6e706f4
server: Use shared resolver in featured and question accept
2022-12-01 04:40:14 -05:00
Derek Schmidt
d3af00a912
server: Add recursion limit to resolver
...
Changelog: Security
2022-12-01 04:40:07 -05:00
Norm
97288cb75f
docs: Make IRC stuff a proper subsection in install/migration guides
2022-12-01 00:32:24 -05:00
Norm
9c22d904bf
docs: Add IRC contact to migration guide
...
Makes it consistent with the install guide and helps users reach the appropriate place to get support.
2022-12-01 00:59:40 +00:00
SuperDicq
2edb41adb1
docs: Update migration guide with additional info ( #257 )
...
Reviewed-on: FoundKeyGang/FoundKey#257
Co-authored-by: SuperDicq <info@jiyu.dev>
Co-committed-by: SuperDicq <info@jiyu.dev>
2022-12-01 00:41:56 +00:00
Weblate
a96fae65c2
Update translation files
...
Updated by "Cleanup translation files" hook in Weblate.
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/
Translation: Foundkey/foundkey
2022-11-29 22:40:37 +00:00
Norm
e0777191da
chore: Remove serviceworker settings locale strings
...
As of commit 973bd4532b
the serviceworker
settings have been removed, meaning the corresponding strings are no longer
used.
2022-11-29 17:38:34 -05:00