Commit graph

228 commits

Author SHA1 Message Date
Jemma 2af8d74487
Merge pull request #30 from PretendoNetwork/dev
Update master branch
2023-10-22 15:37:08 -05:00
Jonathan Barrow d839969d0e
temp - added explicit beta checks for some endpoints 2023-10-03 14:47:18 -04:00
Jonathan Barrow 88633eeb4c
ignore token for WWP 2023-10-03 13:34:13 -04:00
Jonathan Barrow 2c477ec919
wrong feeling_id check 2023-10-03 13:23:18 -04:00
Jonathan Barrow eab3c10e68
removed the use of any in post endpoints 2023-10-03 13:15:39 -04:00
Jonathan Barrow ee3e0bfbdc
removed the use of any in people endpoints 2023-10-03 13:12:34 -04:00
Jonathan Barrow 3f82c73a37
removed the use of any in communities endpoints 2023-10-03 13:03:03 -04:00
Jonathan Barrow 5e833c558e
make WWP always return unique users between communities 2023-10-03 12:59:00 -04:00
Jonathan Barrow 7884836013
remove the use of any from server.ts 2023-10-03 12:51:47 -04:00
Jonathan Barrow af863e4f19
remove unused mapToObject function 2023-10-03 12:48:25 -04:00
Jonathan Barrow 90b477126d
remove the use of any from express-subdomain type def 2023-10-03 12:46:41 -04:00
Jonathan Barrow ef67cfd2b7
if post feeling_id < 5, set to 0 2023-10-02 23:31:40 -04:00
Jonathan Barrow 153df65692
WWPData -> WWPResult 2023-10-02 23:26:42 -04:00
Jonathan Barrow 09a88a5452
disable require-atomic-updates in auth middleware 2023-10-02 23:20:23 -04:00
Jonathan Barrow a44c80dcbe
removed empty objects in model types 2023-10-02 23:14:02 -04:00
Jonathan Barrow 1fd63bee29
updated Post.json() topic_tag generation 2023-10-02 23:06:40 -04:00
Jonathan Barrow e529afe540
Post.remove() -> Post.del(), remove is used by Mongoose internally 2023-10-02 17:15:46 -04:00
Jonathan Barrow 8e57cc6bb8
move the @pretendonetwork/grpc package 2023-10-02 17:12:16 -04:00
Jonathan Barrow 32c662db41
added SettingsData type 2023-10-02 16:46:55 -04:00
Jonathan Barrow ff104b496f
updated Conversation.newMessage parameter types 2023-10-02 16:44:55 -04:00
Jonathan Barrow 2dd582a9c0
added CommunityData type 2023-10-02 16:44:10 -04:00
Jonathan Barrow cdeac347e0
removed unused document methods 2023-10-02 16:09:25 -04:00
Jonathan Barrow faa12036bb
make post encoding more generic and structure accurate 2023-10-02 15:44:09 -04:00
Jonathan Barrow c9200e21b2
pass document type to document methods 2023-10-02 15:12:37 -04:00
Jonathan Barrow 55ec9232a7
prefer inference in models 2023-10-02 14:57:47 -04:00
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