68f9e3e0dd
server: change pagination of drive/show endpoint
...
This changes the pagination of the drive/show API endpoint to use the
offset variant of pagination and allows to specify a sorting.
closes FoundKeyGang/FoundKey#362
2023-03-26 11:05:55 +02:00
94d1cf75aa
server: unify drive object types in database
...
Minor adjustment: The 'name' columns have the same max length.
Major adjustment: Rename both columns to be "parentId" and update
all references of this name in the backend. API parameters are not
changed, since that would be an unnecessary breaking change.
2023-03-26 11:05:55 +02:00
701054b86e
replace NBSP with SP
...
How did this get here in the first place?
2023-03-26 10:57:12 +02:00
c1f7ad0c14
server: add movedTo to packed user
2023-03-23 21:45:59 +01:00
e78069d904
server: implement moveTo property on actors
...
Co-authored-by: Mary Strodl <ipadlover8322@gmail.com>
Co-authored-by: amybones <amy@spookygirl.boo >
2023-03-23 21:43:50 +01:00
72b8489ae7
client: display move notification
2023-03-23 21:10:17 +01:00
5ad18c8626
server: add migration for movedTo user/notif
2023-03-23 21:10:16 +01:00
910976a55b
server: implement receiving Move activities
...
For now only creates notifications.
2023-03-23 21:10:15 +01:00
3c2092935c
server: add object hint to resolvePerson
2023-03-23 21:10:14 +01:00
3311bd866b
add move notification type
2023-03-23 21:10:08 +01:00
c8a07e58f8
server: update summaly
...
- updates got (CVE-2022-33987)
- now properly preview XHTML pages
Changelog: Security
2023-03-23 20:32:31 +01:00
f1d7357e75
server: fix undefined variable in getOneApId
...
This is a fixup for commit 48fd543d0f
.
closes FoundKeyGang/FoundKey#365
2023-03-22 18:30:56 +01:00
d3fbe5e382
BREAKING server: refactor streaming API data structures
...
Since looking up a channel by ID should be the most often needed use
case, the data structure is now more optimized towards this. The code
is also simplified by using optional chaining where possible.
In this vein, the server will now enforce that channel IDs are unique
and not reused.
Changelog: Changed
2023-03-19 12:39:57 +01:00
7e4148880b
server: improve comments in streaming API
2023-03-19 11:09:56 +01:00
ed9b9210a9
server: remove some casting to any
2023-03-19 10:45:57 +01:00
742fa37e2b
server: show worker mode in process name
...
Changelog: Added
2023-03-19 09:39:33 +01:00
Richard "EpicKitty" Bowey
79a9b04d25
put the migration in its place
2023-03-17 16:16:41 +01:00
32beda4344
server: improve error message for invalidating follows
...
This error was broken out to be a separate error code and message.
Changelog: Changed
2023-03-16 20:42:02 +01:00
d6837814d9
Merge branch 'drive-api-combined'
...
Reviewed-on: FoundKeyGang/FoundKey#297
2023-03-13 19:30:24 +01:00
syuilo
1274af05a4
remove unused instance settings
2023-03-12 16:28:07 +01:00
6a17dcf4de
server: refactor to group deletion deliveries
...
The `quiet` argument has been removed from `deleteNote` (or `deleteNotes`
respectively) since it was not used anywhere and it does not seem a good
idea to not update statistics in some cases.
This should also fix an issue where cascade deletions mean that statistics
are not properly updated or streaming clients not properly informed of
deletions. This case was seemingly not considered before, even though
there was some handling for cascade deleted notes.
This is going to improve how cascade deletion impacts the delivery queue,
because cascade-deleted notes will now be grouped for delivery.
Changelog: Fixed
2023-03-12 12:37:20 +01:00
383ea40704
server: add function to deliver multiple activities to a relay
2023-03-11 22:23:42 +01:00
e52cf25489
server: use named export for deleteNote
2023-03-11 09:54:46 +01:00
1bce487965
activitypub: allow to group elements for delivery
2023-03-11 09:42:14 +01:00
78c93c5539
server: clean up activitypub deliver code
2023-03-11 09:42:14 +01:00
2164fda2fb
server: do AP sent statistics in request function
2023-03-11 09:42:05 +01:00
ee2860e894
improve docs
2023-03-03 23:36:15 +01:00
a750c7ad57
server: remove unused avgColor attribute from types
2023-03-03 21:36:21 +01:00
5aa5344f2e
docs: fix schema definitions
2023-03-03 21:12:44 +01:00
e2063f4ff9
fix: correctly parse quotes
2023-02-24 23:47:50 +01:00
57e4971214
Revert "server: fix return of visibilityQuery
function"
...
This reverts commit 32f4bee5e8
.
It is the right thing to do in theory, but it doesn't work.
I hate typeorm.
2023-02-21 21:16:28 +01:00
32f4bee5e8
server: fix return of visibilityQuery
function
2023-02-21 21:04:38 +01:00
c8731333ba
server: add new deepl languages
...
DeepL now also supports Norwegian (Bokmål) and Korean.
Ref: https://www.deepl.com/en/blog/welcome-korean-and-norwegian
Changelog: Added
2023-02-21 18:24:29 +01:00
0a7352eda9
server: add diagnostics for failing visibility
2023-02-20 21:08:58 +01:00
c777c2ed04
fix: perform visibility query in second stage
2023-02-20 21:08:58 +01:00
8f5952bb7d
server: handle note visibility in SQL
...
This allows to check visibility recursively, which should hopefully
solve problems with timelines not showing up properly.
Changelog: Changed
2023-02-20 21:08:47 +01:00
73d546372e
refactor: replace import paths containing ../
in API server
...
This is a big one...
2023-02-19 23:36:15 +01:00
bfd1adf761
BREAKING server: restructure endpoints related to user administration
...
- `admin/abuse-user-reports` -> `admin/reports/list`
- `admin/delete-all-files-of-a-user` -> `admin/users/delete-all-files`
- `admin/resolve-abuse-user-report` -> `admin/reports/resolve`
- `admin/accounts/create` -> `admin/users/create`
- `admin/accounts/delete` -> `admin/users/delete`
- `admin/show-user` -> `admin/users/show`
- `admin/show-users` -> `admin/users`
- `admin/silence-user` -> `admin/users/silence`
- `admin/suspend-user` -> `admin/users/suspend`
- `admin/unsilence-user` -> `admin/users/unsilence`
- `admin/unsuspend-user` -> `admin/users/unsuspend`
- `admin/reset-password` -> `admin/users/reset-password`
Changelog: Changed
2023-02-19 23:36:13 +01:00
41aa5cd18f
fix typo
2023-02-19 23:32:36 +01:00
17c9a9374d
fixup: server: parse quote tag syntax
...
This is a fixup for commit 5893a44ff5
.
2023-02-19 19:41:11 +01:00
3e9dd7957d
server: dont error on generating empty RSS feed
...
Changelog: Fixed
2023-02-18 17:43:27 +01:00
bf445964b5
improve documentation for fetch-rss endpoint
...
Changelog: Fixed
2023-02-15 20:42:24 +01:00
c9d395961e
server: refactor packing User
2023-02-11 19:17:11 +01:00
3a7e8cfe50
server: check instance description length limit
...
Changelog: Fixed
2023-02-11 19:16:28 +01:00
b8796cb1fa
activitypub: remove _misskey_votes property
...
This is a duplication of `replies.totalItems` and seems unnecessary,
it is even only parsed by Misskey if the afforementioned property is
not available.
Changelog: Removed
2023-02-11 17:49:12 +01:00
68bc2e314b
activitypub: remove _misskey_reaction property
...
This property is duplicated by the `content` property so seems unnecessary.
Changelog: Removed
2023-02-11 17:43:44 +01:00
fff93c6965
activitypub: remove _misskey_content attribute
...
As already noted back in https://github.com/misskey-dev/misskey/pull/8787
the intention was to replace the `_misskey_content` attribute with the
ActivityPub-defined `source` property. Misskey and by extension Foundkey
have shipped with the `source` property and the respective parsing for
quite a while so it seems reasonable to remove it now.
Changelog: Removed
2023-02-11 17:25:24 +01:00
7c89e99243
fix registry migration
...
It can happen that registry items were created at exactly the same time for some reason.
2023-02-11 12:52:28 +01:00
27b912b9b0
security: check schema for URL previews
...
Changelog: Fixed
2023-02-10 20:06:18 +01:00
48fd543d0f
security: check URL schema of AP URIs
...
Changelog: Fixed
2023-02-10 20:06:12 +01:00