d762143b89
backend: fixup missing deadTime and incorrect import
2022-10-16 09:32:01 -04:00
21c1e5c06c
backend: simplify suspended and dead queries
...
This should also have better latency due to being a single query.
Furthermore, it's no longer a linear scan, since host is indexed.
Would be cool to simplify it further to a single query for blocks also...
Why exactly are blocks not in the db?
2022-10-16 09:22:05 -04:00
91a4f38871
backend: add automatic dead instance detection
...
It works by having a day-long cache of
"when did we last successfully communicate with this instance?"
Anything over a specified threshold (1 month) will act as though the instance
is suspended - all outgoing jobs are dropped on processing.
The day-long cache is in place because the ordering is necessarily a
linear scan.
Once an instance comes back online, we will detect that is the case as soon as
we receive an activity from them (which will update the "last communicated at")
field.
Potential future TODOs:
* Improve the caching system, it's actually pretty inefficient as it is.
CacheBox with a call override?
* Think of ways to make it not-a-linear-scan, since the instances table can get
pretty big. It's around 4500 on toast cafe.
ChangeLog: Added
2022-10-16 12:16:04 +00:00
756ecbb1f7
fix type error
2022-10-16 04:20:11 +02:00
b431471fd1
update SECURITY.md
2022-10-16 00:28:00 +02:00
48023a0814
add link to external CSS snippets
2022-10-14 17:11:06 +02:00
8721e8844a
client: fix vue warning
...
> Invalid prop: type check failed for prop "modelValue". Expected String | Number, got Null
2022-10-14 16:55:37 +02:00
4b98677141
client: add aliases for beverage box emoji
...
Every time I want to use it I had to figure out it's called a
"beverage box". And that happened often because I follow Tlapka.
2022-10-14 15:11:47 +02:00
177f34b02e
client: remove unused ref
2022-10-12 20:59:26 +02:00
79c70c1017
allow to export only selected emoji
...
Changelog: Added
2022-10-12 01:50:14 +02:00
cb0b14ba2d
backend: allow to export only specific emoji
2022-10-12 01:49:53 +02:00
7ea6deb19b
client: only show emoji as selected in select mode
...
When exiting select mode and emoji are selected, the green border was
still being displayed even after exiting select mode again.
2022-10-12 01:48:57 +02:00
6d0cfe42f2
client: make hard coded strings in emoji admin panel internationalized
...
Changelog: Fixed
2022-10-12 01:36:53 +02:00
9a503273fb
Merge pull request 'refactor meta API endpoint' ( #196 ) from refactor/api/meta into main
2022-10-11 17:20:51 +00:00
20a6140e9a
Merge pull request 'backend: Cleanup prelude directory' ( #199 ) from backend-cleanup-prelude into main
...
Reviewed-on: FoundKeyGang/FoundKey#199
2022-10-11 14:47:40 +00:00
c29e24c103
client: Fix reports not showing in control panel
...
Closes: FoundKeyGang/FoundKey#194
Changelog: Fixed
2022-10-11 14:45:24 +00:00
6d58d5ed3b
fixup: muted-renotes review round 1
2022-10-11 10:42:39 +00:00
897658c188
import publishUserEvent in mute renote APIs
2022-10-11 10:42:39 +00:00
590a8b98d9
fixup renoteMuting stream filter being overzealous
2022-10-11 10:42:39 +00:00
dd5100d124
add streaming events for renotemuting and blocking
2022-10-11 10:42:39 +00:00
3d9df839a5
add down-migration for renote mutes
2022-10-11 10:42:39 +00:00
c414f24a2c
feat: per-user renote muting
...
Changelog: Added
2022-10-11 10:42:39 +00:00
2c411d59f4
client: use cached instance information
2022-10-11 10:46:25 +02:00
60600729df
backend: Fix import of sanitize-html
...
I'm not sure how it managed to work so far, but the function is the default
export, using the namespace like a function should not have worked,
maybe something under the hood was correcting it back
2022-10-11 10:41:50 +02:00
683b0cfa82
backend: remove unused prelude modules
...
Much of these modules are no longer used in the backend. They seem to be
from before the code was organized in packages.
2022-10-11 01:53:34 -04:00
c65559872b
backend: add missing return type annotation in array.ts
2022-10-11 01:51:17 -04:00
02079593d5
client: Switch to upstream browser-image-resizer version
...
This should reduce package install times since the pre-built version
from npmjs is used instead of having to build from source.
2022-10-11 03:28:11 +00:00
e8ed254e4d
client: fix types in tab.vue
2022-10-10 22:42:17 -04:00
08c65e9797
client: auto-fix lints in tab and page-header
2022-10-10 18:55:33 -04:00
13a3581817
Merge branch 'refactor/use-null-coalesce-etc'
...
Reviewed-on: FoundKeyGang/FoundKey#195
2022-10-10 18:44:19 -04:00
808c43377e
refactor: use nullish coalescing & optional chaining
...
Changes several places to use the afforementioned constructs in favour of
ternary expressions.
2022-10-11 00:39:27 +02:00
91c043689b
Merge pull request 'backend: Fix imports from weird paths' ( #192 ) from Michcio/FoundKey-0x7f:extensionless-imports into main
...
Reviewed-on: FoundKeyGang/FoundKey#192
2022-10-10 18:58:54 +00:00
30faeb73d2
backend: Fix type errors in genId
...
I checked on NodeJS locally and `Math.min` was coercing the Dates to numbers,
I'm just making it more obvious (to the typechecker as well)
2022-10-10 20:50:04 +02:00
dc510c6834
Fix imports from weird paths
...
These imports were breaking in TS error checking and VS Code, because
imports need to have an extension to be valid, apparently
2022-10-10 20:45:45 +02:00
a91bbed34e
Make it impossible to start initializing Vue before DOM exists
2022-10-10 14:22:48 -04:00
4f9504d135
client: fetch meta via GET
2022-10-10 17:36:50 +02:00
9022ab9f2a
backend: ignore detail parameter on meta endpoint
...
Also allow meta endpoint to be fetched via GET.
Changelog: Removed
2022-10-10 17:36:13 +02:00
4e0f14c0db
Merge pull request 'client: refactor marquee component to composition API' ( #187 ) from refactor/marquee into main
...
Reviewed-on: FoundKeyGang/FoundKey#187
2022-10-08 23:00:48 +00:00
b018b05c5c
add type annotations
2022-10-08 15:10:14 -04:00
b95f90eb15
client: refactor marquee component to composition API
2022-10-08 15:10:14 -04:00
60e49a4196
add type annotations
2022-10-08 20:59:21 +02:00
f6a5459f91
Merge PR 'client: refactor super-menu component to composition API' ( #186 )
...
Reviewed-on: FoundKeyGang/FoundKey#186
2022-10-07 19:50:56 -04:00
3f59b7f705
client: refactor marquee component to composition API
2022-10-07 13:32:44 +02:00
64e3239566
client: refactor super-menu component to composition API
2022-10-07 11:28:49 +02:00
cee402c591
Translated using Weblate (German)
...
Currently translated at 100.0% (1366 of 1366 strings)
Translated using Weblate (German)
Currently translated at 100.0% (1366 of 1366 strings)
Translated using Weblate (English)
Currently translated at 99.7% (1363 of 1366 strings)
Co-authored-by: Johann <johann@qwertqwefsday.eu>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/de/
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/en/
Translation: Foundkey/foundkey
2022-10-07 07:39:53 +00:00
Weblate
6a3f8aa4f9
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-10-07 07:39:53 +00:00
8311b30b4c
client: fix tolerance for future timestamp
2022-10-07 09:38:44 +02:00
27cf3c4e05
client: Fix relative timestamps
2022-10-05 02:17:32 -04:00
c20352b22e
backend: update THRESHOLD constants to use time constants
2022-10-05 00:54:16 -04:00
9084864b34
backend: translate comments in const.ts
2022-10-05 00:52:52 -04:00