Commit graph

520 commits

Author SHA1 Message Date
Norm 4ad53f232a
backend: move @types/pg to devDependencies 2022-09-07 14:20:22 -04:00
Norm 0e49c726ec
backend: add @types/pg for pg type definitions 2022-09-07 14:19:03 -04:00
Norm f21e1afaa4
backend: fix query for mentionedUsers 2022-09-07 13:34:38 -04:00
Johann150 7a981de883
refactor: remove note.mentionedRemoteUsers column
The column mentionedRemoteUsers on the note table in the database is
firstly in the wrong type since it contains JSON data but is typed as
text. Secondly it seems redundant, since that data can be acquired by
using the note.mentions column to fetch the respective data instead.

Co-authored-by: Francis Dinh <normandy@biribiri.dev>
2022-09-07 14:43:04 +02:00
Johann150 3bdbbcadd9
adjust MFM to HTML conversion
Removed the misc/get-note-html module which was only used in one place.
Instead of it, the general MFM to HTML functionality has been improved to
take care of the use cases of that module as well.

Co-authored-by: Francis Dinh <normandy@biribiri.dev>
2022-09-07 14:42:39 +02:00
Norm 7b4ebd2715 backend: remove room data from user
Rooms were remove a while back in upstream Misskey. This removes the
associated data left over in the database.

Changelog: Removed
2022-09-07 08:30:28 +00:00
Michcio abef030a24 build: Move resolutions sections to workspace package.json
Yarn throws a warning on every `yarn install` that the resolutions
from respective packages' manifests are ignored.
2022-09-06 23:18:15 +02:00
Norm 5939c90b84
update eslint plugins 2022-09-06 11:19:34 -04:00
Norm 5fb294e7d7
Use native shell commands for clean/clean-all 2022-09-05 04:43:40 -04:00
Norm 40683b0e10
update tsc-alias 2022-09-05 04:28:08 -04:00
Norm 892ea5e2bf
upgrade eslint and typescript-related dependencies
Changelog: Changed
2022-09-05 03:15:16 -04:00
Michcio 13ce1f0d4e backend: Fix async types in boot 2022-09-04 11:24:04 +02:00
Norm e1ebd1f75f
revert tsconfig declaration to false 2022-09-03 17:50:33 -04:00
Michcio c04b34ba67
Enable incremental builds 2022-09-03 15:37:54 -04:00
Johann150 2ed46aaebb
fix: check visibility when serving Like activity 2022-09-02 14:34:32 +02:00
Johann150 375323bc25
update parameter type and docs 2022-09-02 14:28:55 +02:00
Johann150 0c5869805a
fix type typo 2022-09-02 09:36:31 +02:00
Norm 2669fc4380
pin dependencies 2022-08-29 20:36:01 -04:00
Norm 97b9a00105
security: update dependencies
- file-type: 17.1.2 -> 18.0.0
- got: 12.1.0 -> 12.3.1
- sharp: 0.29.3 -> 0.30.7
2022-08-29 20:33:40 -04:00
Norm 41414b4576
chore: remove s-age dependency
This isn't being used anymore since
4e41fa8767.
In any case, age calculation really doesn't need to involve a 3rd party
library.

Ref: FoundKeyGang/FoundKey#90
2022-08-28 11:35:18 -04:00
Norm dd9dc497fb
fix some deps 2022-08-26 18:04:53 -04:00
Norm bc0f0bf08f
add foundkey-js to each workspace package.json 2022-08-26 16:38:41 -04:00
Norm 247a01dfe6
remove subproject yarn.locks 2022-08-26 16:05:11 -04:00
Norm 6bb3f39c36
migrate to Yarn 3.2.3 2022-08-26 15:24:29 -04:00
Norm 6bccbc0d6d
switch to yarn for scripts and move start to backend 2022-08-26 12:48:55 -04:00
Norm 237c29a4b8
backend: move to foundkey-js 2022-08-26 01:34:22 -04:00
Norm 33146ffa5e
Fix paths for twemoji and font-awesome 2022-08-26 00:31:17 -04:00
Norm b230dc98a9
fix import path for TreeAdapter 2022-08-26 00:15:21 -04:00
Norm c1242cfde2
Fix build errors 2022-08-25 23:36:08 -04:00
Johann150 523d366ca3
refactor: remove unnecessary array map 2022-08-25 00:10:54 +02:00
Johann150 4f2a9f8911
refactor: adjust HTML mention microformat
Adjust the federated HTML microformat to the one that is documented
at <https://docs.joinmastodon.org/spec/microformats/>, namely adding
the missing surrounding tag with the class `h-card`.
2022-08-25 00:06:11 +02:00
Johann150 f119914b98
refactor: use optional chaining and nullish coalescing 2022-08-25 00:06:11 +02:00
Norm 8e5a350f1b Simplify fetching object in resolver.ts
this.user will always be true, so we aren't doing unsigned fetches.
2022-08-21 13:13:34 -04:00
Norm 77bfc2450d Remove signToActivityPubGet option
Makes it so that all requests are signed, equivalent to
signToActivityPubGet always being true.
2022-08-21 12:38:43 -04:00
Johann150 0965d3cbd9
merge: simplify pages
FoundKeyGang/FoundKey#49
2022-08-19 09:16:49 +02:00
Norm 27c56a4dcc Merge pull request 'security: update multer to 1.4.5-lts.1' (#69) from fix/multer-security into main
Reviewed-on: FoundKeyGang/FoundKey#69
2022-08-18 17:39:33 +00:00
Johann150 5d41384708
fix: await promises in migration 2022-08-18 18:26:17 +02:00
Johann150 7ae5d6b1b8
backend: fix packing pages 2022-08-18 17:34:20 +02:00
Johann150 c0b0720ede
add best effort migration for pages 2022-08-18 17:34:20 +02:00
Johann150 90d35b951f
adjust types & api for pages 2022-08-18 17:32:01 +02:00
Johann150 b137a39160
merge: remove promo notes
FoundKeyGang/FoundKey#62
2022-08-18 14:26:48 +02:00
Norm f30e02dc73 security: update multer to 1.4.5-lts.1
This version of multer contains a fix for
CVE-2022-24434 which affects a transitive dependency.

> This affects all versions of package dicer. A malicious attacker can
> send a modified form to server, and crash the nodejs service. An
> attacker could sent the payload again and again so that the service
> continuously crashes.

Ref: https://nvd.nist.gov/vuln/detail/CVE-2022-24434
2022-08-18 01:37:39 -04:00
Johann150 f0bdd9666f
remove empty import statements 2022-08-14 12:26:18 +02:00
Johann150 c8afce6b2c
fix blocking of remote accounts
The property name was misspelled.
2022-08-14 11:33:08 +02:00
Johann150 e028a852f6
remove more code referencing promo notes 2022-08-12 19:39:48 +02:00
Andy c7bf29fd49 Remove promo entities and endpoints 2022-08-11 23:13:09 +02:00
Johann150 6ce4b3fe2f
fix some lints
Many of these were fixed automatically with eslint --fix.

Some of them (e.g. adding return types to functions) were done manually.
2022-08-11 00:09:29 +02:00
Johann150 961fb0d2df
fix: use correct variable
Fixes an error introduced in commit 7a80015225.
2022-08-10 23:59:35 +02:00
Johann150 7a80015225
fix lint "no-param-reassign" 2022-08-10 16:36:54 +02:00
Johann150 09a7eabda1
backend: fix lint "no-throw-literal" 2022-08-04 11:00:02 +02:00