Commit graph

2168 commits

Author SHA1 Message Date
21ab8e75ee
activitypub: improve JSON-LD context
Added @type values for most definitions, and made name and value only
scoped to the PropertyValue type. (Blame Volpeon)
2023-05-30 17:57:03 +02:00
9c5755cf65
backend: fixup another missed import of extractEmojis 2023-05-30 00:17:56 -04:00
fce14a07da
backend: fix import of extractEmojis in models/person 2023-05-30 00:12:07 -04:00
704651e057
refactor mutedWordsCache and index to separate file 2023-05-29 22:29:37 +02:00
eb971de3a7
move extractEmojis to models/tags 2023-05-29 22:29:36 +02:00
d74b7d2eec
refactor note content processing
Refactor the content processing into a separate function so it can be
reused in a updateNote function to be created.
2023-05-29 22:29:36 +02:00
3ae8049d81
client: change followers only icon to closed lock
Reviewed-on: FoundKeyGang/FoundKey#388
Changelog: Changed
2023-05-29 20:01:23 +02:00
89fad52272
remove redundant check
Whether the actor is suspended is already checked in the performOneActivity
function and does not need to be checked here again since the actor is still
the same as it was there.
2023-05-28 23:31:06 +02:00
2696c34f6c
fix some audience parsing assumptions
The assumptions made in the comment is actually wrong. The comment says:
"If value is a string, this means it must have passed through the resolver,
which means it must be public." But this is not true because we do signed
GET requests which means we may well get non-public posts using the
resolver.
2023-05-28 23:28:43 +02:00
bda8488194
fix messaging messages with multiple recipients
instead of returning early, this should only return after all messaging
messages have been created
2023-05-28 23:28:42 +02:00
c9df2fd060
validate that note attributed to is not local 2023-05-28 23:28:42 +02:00
cc342f1443
refactor createNote, translate comments
Use the already existing functions isPost and toArray instead of
reimplementing them.
2023-05-28 23:28:42 +02:00
4dcca239b1
make container of new notes button click-through 2023-05-27 22:59:03 +02:00
f883d2e31b
fix showing follower/following count 2023-05-27 20:42:10 +02:00
d55f8742b8
cache when computing note count etc. 2023-05-27 20:34:28 +02:00
5408929c2a
fixup: remove another reference to favorites
This is a fixup for commit de81fac334.
2023-05-27 20:19:05 +02:00
989f0ce41d
fix MFM fg/bg color regex
CSS colors are either 3 or 6 hex digits, not 3 to 6 (which would allow
4 and 5 digit hex codes, which are not accepted).

Also adds an explicit null/undefined check.

Changes the default color for the $[bg ] function to something different
than the fg color so if you use both functions on a piece of text with
default values, the text stays somewhat readable.
2023-05-27 12:12:29 +02:00
3f9b09e3e7
simplify MFM position CSS 2023-05-27 12:12:29 +02:00
a72f4300aa
remove unused rootScale and scale params 2023-05-27 12:12:29 +02:00
404bb3b6b6
parseSimple in backend 2023-05-27 12:12:28 +02:00
f6ff21ee53
update mfm-js lib 2023-05-27 12:12:28 +02:00
a45b611a7e
add fg and bg tag
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-05-27 12:12:13 +02:00
11121bbb4c
add scale tag
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-05-27 12:10:34 +02:00
a16e921ffc
add position token
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-05-27 12:05:14 +02:00
35e814fab4
fix: don't use psql 13 functions
The function GEN_RANDOM_UUID was only introduced to built in postgresql
in version 13, however, the installation guide specifies that version 12
should be sufficient.
2023-05-27 11:18:06 +02:00
9859537b02
BREAKING migrate note favorites to clips
The following endpoints are removed:
- `api/i/favorites`
- `api/notes/favorites/create`
- `api/notes/favorites/delete`
The following endpoints are changed:
- `api/notes/state`
- `api/users/stats`

closes FoundKeyGang/FoundKey#374

Changelog: Removed
2023-05-26 21:17:04 +02:00
aa7171e116
server: remove favorites 2023-05-26 20:59:53 +02:00
de81fac334
client: remove favorites 2023-05-26 20:59:52 +02:00
6695171b6a
remove outdated misskey-js api report 2023-05-26 20:59:52 +02:00
ffdb112867
foundkey-js: remove favorites 2023-05-26 20:59:52 +02:00
a3c7571670
add missing comma 2023-05-23 23:56:30 +02:00
79acdd7652
fix: properly await file deletion 2023-05-23 22:56:51 +02:00
f54fa0ad02
server: remove unnecessary complex loop 2023-05-23 22:56:27 +02:00
dfe12cba75
show stack trace from API handler 2023-05-23 22:44:56 +02:00
e75123602f
fix reference error from isNull 2023-05-23 22:44:15 +02:00
c81368f617
update changelog and version number 2023-05-23 21:59:14 +02:00
4307010a9f
fix new occurences of isDeleted 2023-05-23 21:49:34 +02:00
e584937b4f
fix: missing paren, type error 2023-05-23 21:49:34 +02:00
4312393169
Revert 'Revert "server: fix user deletion race condition"'
This reverts commit bb3ec8bafe.
2023-05-23 21:49:33 +02:00
2fde652b4a
server: fix drive quota for remote users
This deletes as many files as necessary to ensure the drive quota for
remote users is kept. Previously only one file would have been deleted
for each file added.

Changelog: Fixed
Co-authored-by: CGsama <CGsama@outlook.com>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-05-23 21:36:35 +02:00
efa8305e0b
BREAKING rename environment variables from MK_... to FK_...
Changelog: Changed
2023-05-23 19:49:55 +02:00
e6a8173378
refactor onlyQueue and onlyServer configuration
Instead of checking this configuration in the respective component (queue)
or not at all (server), the configuration can be checked when starting the
respective workers.
2023-05-23 19:49:55 +02:00
239a52eb99
add "quiet" log level
This log level replaces the "MK_QUIET" environment variable to unify
the interface in a sensible way. This also removes the "MK_VERBOSE"
environment variable which was unused.
2023-05-23 19:49:55 +02:00
38c2d86983
add log level environment variable
To avoid a circular dependency this requires moving the log level
definitions. Also to avoid a circular dependency the env.ts file cannot
use a logger and instead uses plain `console.log`.
2023-05-23 19:49:55 +02:00
6b9a3259f5
fix: log levels order
Most important messages are the ones with the highest value

This is a fixup for commit c5327f74d4.
2023-05-23 18:12:48 +02:00
296c40c5b4
fix: stop sending pings on every pong
This resulted in endless ping-pong traffic on the websocket, happening
every interval of network latency to the server (e.g. for me, with 40ms
latency to my server, it was about every 40ms). On my server this ended
up taking about 20% of foundkey's CPU usage. Now, just send pings every
30s, and check if we have received any pong's in last 60 seconds to
check that the connection is still alive.

Changelog: Fixed
2023-05-23 18:08:08 +02:00
38193cd3e5
fixup: typo in ffVisibility setting
This is a fixup for commit fe65cba9be.
2023-05-20 23:38:23 +02:00
fe65cba9be
add "nobody" follower visibility
Adds a new follower/following visibility that hides followers even from
yourself.

Changelog: Added
2023-05-20 23:18:57 +02:00
ef4055840b
BREAKING server: respect ffVisibility on stats endpoint
This makes the returned values `localFollowingCount`,
`remoteFollowingCount`, `followingCount`, `localFollowersCount`,
`remotefollowersCount`,  `followersCount` optional on the API endpoint
`users/stats`.

Changelog: Fixed
2023-05-20 23:18:57 +02:00
ded48c96d8
server: use foundkey-js definition of ffVisibilities 2023-05-20 23:18:56 +02:00