Jonathan Barrow
78c61249c5
removed unnecessary type defs. prefer inference
2023-10-02 14:55:52 -04:00
Jonathan Barrow
6076536996
fixed spacing issue in Post type def
2023-10-02 13:00:23 -04:00
Jonathan Barrow
e2d4a11184
updated test script to require console headers
2023-10-02 12:54:35 -04:00
Jonathan Barrow
23434c74a7
updated vulnerable packages
2023-10-02 12:45:07 -04:00
Jonathan Barrow
12a53a8313
updated license field in package.json
2023-10-02 12:39:15 -04:00
Jonathan Barrow
4e894e9195
updated author and contributors package.json fields
2023-10-02 12:37:48 -04:00
Jonathan Barrow
7d86ea3d92
make wwp more accurate and stable
2023-10-02 12:32:34 -04:00
Jonathan Barrow
a9336a0e9b
Enable source maps in node
2023-07-17 19:42:54 -04:00
Jonathan Barrow
e6d68accab
Enable source maps for compiled JS
2023-07-17 19:34:57 -04:00
Jonathan Barrow
285d1dd4c1
Fixed crash in /v1/people when only one PID input is given
2023-07-17 19:31:40 -04:00
Jonathan Barrow
07b13fb2c3
Merge pull request #29 from EpicUsername12/dev
2023-07-04 18:48:28 -04:00
Rambo6Glaz
919b74d64e
More ✂️
2023-07-05 00:46:38 +02:00
Rambo6Glaz
792fdf9f40
Removed regex to 'trim()'
2023-07-05 00:32:50 +02:00
Rambo6Glaz
e95b109816
- Removed digit count condition
...
- Added "Cannot start with a whitespace" condition
2023-07-05 00:27:42 +02:00
Rambo6Glaz
44a338590b
Fix snake_case arguments
2023-07-04 23:48:59 +02:00
Rambo6Glaz
ac92687af4
Add sub community limits and checks
2023-07-04 09:22:07 +02:00
Jonathan Barrow
09b40b5110
Merge pull request #28 from DaniElectra/search-key
2023-06-30 00:05:10 -04:00
Daniel López Guimaraes
d92defbf9f
Change search_key type check
...
We check if it's an array, and if it isn't, we make an array with
itself.
2023-06-30 02:21:21 +01:00
Daniel López Guimaraes
2eb969c0f1
Simplify check a bit
...
We don't have to assert the string array, as it could be undefined and
we can handle that.
2023-06-29 20:59:19 +01:00
Daniel López Guimaraes
3a71193ff8
Add support for search_key to be string, not array
...
The `search_key` parameter isn't always going to be a string array, but
it can be a single string. Support both cases accordingly.
2023-06-29 19:55:02 +01:00
Jemma Poffinbarger
5f85f65bfc
Updated topics endpoint to prevent sub-communities and user generated communities from being displayed
2023-06-24 14:23:22 -05:00
Jemma Poffinbarger
3f6b0a7aa8
Fixed new posts always being marked as a spoiler. Fixed safe validation failing when a post body was not present when sending a painting
2023-06-13 18:10:44 -05:00
Jonathan Barrow
ba066f1c18
calculateMostPopularCommunities is now more clear and faster
2023-06-13 17:07:17 -04:00
Jemma Poffinbarger
bcb5992ae3
Increased the expiration time for topics from 1 day to 2 days
2023-06-12 17:48:03 -05:00
Jonathan Barrow
9470efe786
updated token format
2023-06-11 07:59:24 -04:00
Jonathan Barrow
35a13d90dc
Merge pull request #26 from EpicUsername12/dev
...
Updated POST /v1/communities/%s
2023-06-01 14:55:19 -04:00
EpicUsername12
acd9a211f2
Removed 'await' on respondCommunityNotFound() calls
2023-06-01 20:51:29 +02:00
EpicUsername12
0c46b33be6
Separated /v1/communities/%s route to multiple routes
2023-06-01 20:33:37 +02:00
EpicUsername12
3ef566789e
Hydrate Post documents on the aggregation path of `/v1/communities/%s/posts`
2023-05-30 19:28:35 +02:00
EpicUsername12
9df8d3f29d
Updated POST /v1/communities/%s:
...
- Implemented ``/v1/communities/%s`` (update user-made sub community)
- Implemented ``/v1/communities/%s.delete`` (delete user-made sub community)
- Implemented ``/v1/communities/%s.favorite``
- Implemented ``/v1/communities/%s.unfavorite``
2023-05-30 18:06:51 +02:00
Jonathan Barrow
fda5e3905e
Merge pull request #25 from EpicUsername12/dev
...
Improved GET and POST /v1/communities
2023-05-27 15:53:48 -04:00
EpicUsername12
6c592fbd1d
Changed Model type back to interface
2023-05-27 00:34:54 +02:00
EpicUsername12
04db683c45
Improved GET and POST /v1/communities
...
- Added an optional 'owner' field to "Communities"
This is because Miiverse allowed user-made communities (4 per games)
- Added a subcommunity query
'parent' mandatory field to get all subcommunities belonging to a specific parent community
'owner' optional field to comply with 'my' query type
'olive_community_id' optional array field to comply with 'favorite' query type, you would feed this field the user favorite sub communities ID
- Fixed CommunitySchema 'json()' method for base64 fields
- Fixed getCommunityByTitleIDs(), there is no field 'title_ids' in the schema
2023-05-26 20:24:49 +02:00
Jonathan Barrow
3619b34142
Merge old commit from branch 'rewrite-jon' into dev
2023-05-01 15:07:22 -04:00
Jonathan Barrow
5a4a4a4c83
Updated token parsing
2023-05-01 15:03:29 -04:00
Jonathan Barrow
3f48b95e68
Merge pull request #24 from PretendoNetwork/rewrite
...
Create dev branch
2023-04-29 21:00:49 -04:00
Jonathan Barrow
ea7fde0abf
Merge branch 'dev' into rewrite
2023-04-29 21:00:23 -04:00
Jonathan Barrow
19a802181e
Merge pull request #21 from PretendoNetwork/rewrite-jon
...
TypeScript Rewrite
2023-04-29 20:55:13 -04:00
Jonathan Barrow
56f248981e
Use new account server token format
2023-04-28 17:02:06 -04:00
Jonathan Barrow
9a25a7a9a2
Added test and dev subdomains to discovery
2023-04-28 16:36:20 -04:00
Jonathan Barrow
436e5f3bd9
Removed account server DB, now uses gRPC
2023-04-28 14:13:03 -04:00
Jonathan Barrow
1b76eb967b
Added missing Settings.json method
2023-04-26 12:20:23 -04:00
Jonathan Barrow
26f309e2b9
Fixed /v1/people crashing when distinct_pid=1
2023-04-26 12:04:27 -04:00
Jonathan Barrow
d68f0c37d9
Added separateArrayItems: true to XML generation for responses with lists
2023-04-26 11:17:48 -04:00
Jonathan Barrow
c243347adb
Spelling mistake in test script
2023-04-26 11:13:43 -04:00
Jonathan Barrow
4c61c89fd7
Move error 16 directly after error 15 in auth middleware
2023-04-26 11:13:15 -04:00
Jonathan Barrow
7ef9147c6c
Add topics to topics list
2023-04-26 11:12:20 -04:00
Jemma Poffinbarger
bd8b249246
Merge branch 'rewrite-jon' of https://github.com/PretendoNetwork/olv-api into rewrite-jon
2023-04-26 00:25:48 -05:00
Jemma
dbd8f44831
Updated community test case to also validate error response formatting
2023-04-26 00:25:23 -05:00
Jemma Poffinbarger
a8d57fb487
Added xml errors to communities.ts
2023-04-26 00:23:29 -05:00