9a34e0b2b1
build: update typescript and related packages
2022-09-08 23:00:36 -04:00
f50b31b847
Merge pull request 'backend: move mentionedUsers query to mention handler' ( #134 ) from fix/backend-toHtml-mentionedUsers into main
...
Reviewed-on: FoundKeyGang/FoundKey#134
2022-09-08 22:07:45 +00:00
199622b415
add check if ids.length > 0 before executing query
2022-09-08 17:47:23 -04:00
714ce60980
Merge pull request 'backend: fix types in boot/{master, worker}.ts' ( #128 ) from fix/backend-boot-types into main
...
Reviewed-on: FoundKeyGang/FoundKey#128
2022-09-08 21:29:01 +00:00
29c7e7e859
backend: fix types in boot/{master, worker}.ts
2022-09-08 17:28:15 -04:00
42132963cf
refactor(backend): remove types.ts in favour of foundkey-js
2022-09-08 23:27:25 +02:00
aa62c1d7a7
refactor(backend): use foundkey-js constants
2022-09-08 22:27:27 +02:00
19e29c3465
backend: move mentionedUsers query to mention handler
...
The mentionedUsers query was being run on every post, regardless of
whether a mention was in it or not.
This resulted in an SQL query ending in `WHERE userId IN ()` which is
not allowed in PostgreSQL.
Reference: FoundKeyGang/FoundKey#132
Changelog: Fixed
2022-09-08 16:17:35 -04:00
c33655bc4f
backend: fix table name used in toHtml
2022-09-08 17:14:23 +00:00
4ad53f232a
backend: move @types/pg to devDependencies
2022-09-07 14:20:22 -04:00
0e49c726ec
backend: add @types/pg for pg type definitions
2022-09-07 14:19:03 -04:00
f21e1afaa4
backend: fix query for mentionedUsers
2022-09-07 13:34:38 -04:00
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
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
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
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
5939c90b84
update eslint plugins
2022-09-06 11:19:34 -04:00
5fb294e7d7
Use native shell commands for clean/clean-all
2022-09-05 04:43:40 -04:00
40683b0e10
update tsc-alias
2022-09-05 04:28:08 -04:00
892ea5e2bf
upgrade eslint and typescript-related dependencies
...
Changelog: Changed
2022-09-05 03:15:16 -04:00
13ce1f0d4e
backend: Fix async types in boot
2022-09-04 11:24:04 +02:00
e1ebd1f75f
revert tsconfig declaration to false
2022-09-03 17:50:33 -04:00
c04b34ba67
Enable incremental builds
2022-09-03 15:37:54 -04:00
2ed46aaebb
fix: check visibility when serving Like activity
2022-09-02 14:34:32 +02:00
375323bc25
update parameter type and docs
2022-09-02 14:28:55 +02:00
0c5869805a
fix type typo
2022-09-02 09:36:31 +02:00
2669fc4380
pin dependencies
2022-08-29 20:36:01 -04:00
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
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
dd9dc497fb
fix some deps
2022-08-26 18:04:53 -04:00
bc0f0bf08f
add foundkey-js to each workspace package.json
2022-08-26 16:38:41 -04:00
247a01dfe6
remove subproject yarn.locks
2022-08-26 16:05:11 -04:00
6bb3f39c36
migrate to Yarn 3.2.3
2022-08-26 15:24:29 -04:00
6bccbc0d6d
switch to yarn for scripts and move start to backend
2022-08-26 12:48:55 -04:00
237c29a4b8
backend: move to foundkey-js
2022-08-26 01:34:22 -04:00
33146ffa5e
Fix paths for twemoji and font-awesome
2022-08-26 00:31:17 -04:00
b230dc98a9
fix import path for TreeAdapter
2022-08-26 00:15:21 -04:00
c1242cfde2
Fix build errors
2022-08-25 23:36:08 -04:00
523d366ca3
refactor: remove unnecessary array map
2022-08-25 00:10:54 +02:00
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
f119914b98
refactor: use optional chaining and nullish coalescing
2022-08-25 00:06:11 +02:00
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
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
0965d3cbd9
merge: simplify pages
...
FoundKeyGang/FoundKey#49
2022-08-19 09:16:49 +02:00
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
5d41384708
fix: await promises in migration
2022-08-18 18:26:17 +02:00
7ae5d6b1b8
backend: fix packing pages
2022-08-18 17:34:20 +02:00
c0b0720ede
add best effort migration for pages
2022-08-18 17:34:20 +02:00
90d35b951f
adjust types & api for pages
2022-08-18 17:32:01 +02:00
b137a39160
merge: remove promo notes
...
FoundKeyGang/FoundKey#62
2022-08-18 14:26:48 +02:00