Commit graph

22148 commits

Author SHA1 Message Date
Johann150 a12debb7b6
server: replace unzipper with decompress
The unzipper package did not seem to work any more and was
mangling the meta.json file in its extracted form and potentially
other files which lead to the emoji import not working properly.

Changelog: Fixed
2023-07-02 00:09:45 +02:00
Johann150 f760426142
fix internal download in emoji import
Changelog: Fixed
2023-07-02 00:09:35 +02:00
Johann150 2f30af1812
server: fix instance actor creation
Because findBy returns an array which is always truthy, this would
mean the user is not actually created as requested and instead an
empty array is returned.
2023-06-29 21:21:26 +02:00
Johann150 2d46cf7c1e
fixup! client: fix MFM overflow
Turning the MFM render container into a div changes it to display
as a block which messes up rendering in some places, e.g. when
it is used to render user names in "Renoted by".
2023-06-27 22:26:13 +02:00
Johann150 2ea6daaf7a
rename extractDbHost to extractPunyHost 2023-06-27 22:02:32 +02:00
Johann150 597de07465
server: refactor HTTP signature validation 2023-06-27 21:46:00 +02:00
Johann150 9289b0e8ed
adjust config file example 2023-06-25 20:44:08 +02:00
Hélène b600efae0d
BREAKING: activitypub: validate fetch signatures
Enforces HTTP signatures on object fetches, and rejects fetches from blocked
instances. This should mean proper and full blocking of remote instances.

This is now default behavior, which makes it a breaking change. To disable
it (mostly for development purposes), the configuration item
`allowUnsignedFetches` can be set to true. It is not the default for
development environments as it is important to have as close as possible
behavior to real environments for ActivityPub development.

Co-authored-by: nullobsi <me@nullob.si>
Co-authored-by: Norm <normandy@biribiri.dev>
Changelog: Added
2023-06-25 20:42:14 +02:00
Johann150 ecca5a164e
client: always forbid MFM overflow
Some MFM overlays UI components. This should remove any possibility that
rendered MFM escapes a Note's body.

Changelog: Changed
2023-06-25 18:41:08 +02:00
Johann150 1125a623a7
Revert "client: fix MFM overflow"
This reverts commit f7904a240a.

Changelog: Fixed
2023-06-25 18:40:48 +02:00
Johann150 51a319e8ca
use extractDbHost 2023-06-23 22:00:31 +02:00
Johann150 f7904a240a
client: fix MFM overflow
closes FoundKeyGang/FoundKey#397

Changelog: Fixed
2023-06-21 23:25:16 +02:00
Johann150 693dd3ad97
remove unused parameter from MFM component 2023-06-21 22:26:39 +02:00
Johann150 777b981bf1
client: disable sound for received note by default
Lessen the sound pollution.

closes FoundKeyGang/FoundKey#394

Changelog: Changed
Co-authored-by: Jeder <jeder+git@jeder.pl>
2023-06-09 17:58:44 +02:00
Norm bbd35054e6
change my name in mailmap 2023-06-07 16:20:52 -04:00
kazari e9862d480c Translated using Weblate (Japanese)
Currently translated at 99.8% (1203 of 1205 strings)

Co-authored-by: kazari <6c577a54-aac9-482a-955e-745c858445e3@simplelogin.com>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/ja/
Translation: Foundkey/foundkey
2023-06-05 21:43:27 +00:00
Johann150 cc0915775b
server: add webhook stat to nodeinfo
This will show the number of active web hooks in the node info.
This is desired to be able to gauge webhook usage in Foundkey.

Changelog: Added
2023-06-05 23:39:43 +02:00
Johann150 f181a8805d
docs: remove bannerColor
This is a fixup for commit a673647fba.
2023-06-05 23:39:43 +02:00
Johann150 ac482e6eec
fix lockfile 2023-06-01 23:24:11 +02:00
Johann150 38786b6999
transform tests from ts to js
This allows to get rid of the special loader for ts files. There is
no need for the test files to be written in TypeScript, plain
JavaScript should be fine for this purpose.
2023-06-01 23:21:03 +02:00
Jeder 680d1f1459
docker: only publish port on localhost
Changelog: Changed
2023-05-31 15:19:10 -04:00
Johann150 a0f0bac1ca
make mutes case insensitive
closes FoundKeyGang/FoundKey#392

Changelog: Changed
2023-05-31 13:02:40 +02:00
Johann150 af003fc0fe
try to fix test timeout (again) 2023-05-31 12:42:13 +02:00
Johann150 94cd10365d
Revert "try to fix tests"
This reverts commit c53486a47c.
2023-05-31 12:31:57 +02:00
Johann150 0addcddd6c
server: respect log level environment variable 2023-05-31 11:39:50 +02:00
Johann150 64c4973eca
fixup: removing default exports
This is a fixup for commit 410c519953.
2023-05-30 21:14:42 +02:00
Johann150 7272bde464
fix more variable issues in processContent 2023-05-30 20:58:18 +02:00
Johann150 7c9e118ff1
refactor checkExpired to use Promise.all 2023-05-30 20:40:25 +02:00
Johann150 bed8286175
fix missing variable in processContent 2023-05-30 20:25:55 +02:00
Johann150 f00b3cc378
add missing import for emoji parsing 2023-05-30 19:53:17 +02:00
Johann150 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
Norm 9c5755cf65
backend: fixup another missed import of extractEmojis 2023-05-30 00:17:56 -04:00
Norm fce14a07da
backend: fix import of extractEmojis in models/person 2023-05-30 00:12:07 -04:00
Norm cb2d0fdd9e docs: fix systemctl edit command in install guide 2023-05-30 02:30:39 +00:00
Norm 56e2000306 docs: use correct capitalization for directory in example service files
This should hopefully cut down on any confusion during the install process.
2023-05-30 01:36:56 +00:00
Johann150 704651e057
refactor mutedWordsCache and index to separate file 2023-05-29 22:29:37 +02:00
Johann150 eb971de3a7
move extractEmojis to models/tags 2023-05-29 22:29:36 +02:00
Johann150 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
Jeder 3ae8049d81
client: change followers only icon to closed lock
Reviewed-on: FoundKeyGang/FoundKey#388
Changelog: Changed
2023-05-29 20:01:23 +02:00
Johann150 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
Johann150 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
Johann150 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
Johann150 c9df2fd060
validate that note attributed to is not local 2023-05-28 23:28:42 +02:00
Johann150 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
Johann150 4dcca239b1
make container of new notes button click-through 2023-05-27 22:59:03 +02:00
Weblate 30403fbe5c 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.

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
2023-05-27 18:43:53 +00:00
Johann150 98898ece18 Translated using Weblate (German)
Currently translated at 100.0% (1209 of 1209 strings)

Co-authored-by: Johann <johann@qwertqwefsday.eu>
Co-authored-by: Johann150 <johann.galle@protonmail.com>
Translate-URL: http://translate.akkoma.dev/projects/foundkey/foundkey/de/
Translation: Foundkey/foundkey
2023-05-27 18:43:52 +00:00
Johann150 f883d2e31b
fix showing follower/following count 2023-05-27 20:42:10 +02:00
Johann150 d55f8742b8
cache when computing note count etc. 2023-05-27 20:34:28 +02:00
Johann150 5408929c2a
fixup: remove another reference to favorites
This is a fixup for commit de81fac334.
2023-05-27 20:19:05 +02:00