1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
Commit Graph

1593 Commits

Author SHA1 Message Date
Flam3rboy
3a8c7ec1c3 Rate Limit Bucket 2021-07-01 11:13:12 +02:00
Flam3rboy
efc522a0c6 🚧 rate limit 2021-07-01 09:33:54 +02:00
Flam3rboy
b0e7a80f34 ⬆️ update checkToken usage 2021-06-30 21:58:10 +02:00
Flam3rboy
54fe0c9f1a 1.3.22 2021-06-30 21:56:28 +02:00
Flam3rboy
c187c4b7ac checkToken return user data 2021-06-30 21:56:25 +02:00
Flam3rboy
19fd29db60 1.3.21 2021-06-30 17:49:49 +02:00
Flam3rboy
e13bdc3127 RateLimit Bucket 2021-06-30 17:49:19 +02:00
Flam3rboy
14a31ad143 🚧 rate limit 2021-06-28 18:43:50 +02:00
Flam3rboy
229e741bfd Rate Limit model 2021-06-28 18:43:22 +02:00
Flam3rboy
e542df3377 🐛 fix ip address lookup 2021-06-27 23:51:30 +02:00
Flam3rboy
3f7e8296d0 v9 2021-06-27 23:30:36 +02:00
Flam3rboy
cc9c666c0f 🐛 fix import 2021-06-27 23:28:25 +02:00
Flam3rboy
47d30153f4 ⬆️ update dev client version 2021-06-27 23:26:49 +02:00
Flam3rboy
ea676ddd03 🔒 register proxy ip check 2021-06-27 23:14:13 +02:00
Flam3rboy
15de8b3563 1.3.20 2021-06-27 23:11:18 +02:00
Flam3rboy
7efdbe4027 🐛 fix mongoose cache 2021-06-27 23:11:04 +02:00
Flam3rboy
e8c3b57f00 1.3.19 2021-06-27 11:24:35 +02:00
Flam3rboy
c0032bf413 Config: ipdataApiKey + register.blockProxies 2021-06-27 11:24:31 +02:00
Flam3rboy
624a4d5694 🐛 fix empty message bug for attachments 2021-06-26 22:45:01 +02:00
Flam3rboy
9b59296af5 🐛 fix CORS 2021-06-26 19:48:20 +02:00
Flam3rboy
4a0d4ae909
Merge pull request #161 from fosscord/l10n_master
New Crowdin updates
2021-06-26 15:10:03 +02:00
Flam3rboy
336754d426 New translations common.json (Hungarian) 2021-06-26 14:36:19 +02:00
Flam3rboy
5bfdad897b
Merge pull request #4 from jhcpeixoto/master
FIX MKDIR
2021-06-25 21:32:11 +02:00
Joaquim Peixoto
b874e999ab 4 TABS 2021-06-25 20:28:59 +01:00
Joaquim Peixoto
1a62f1dd8e FIXS 2021-06-25 20:26:34 +01:00
Joaquim Peixoto
7b84ef1aa0 FIX MKDIR 2021-06-25 20:20:00 +01:00
Flam3rboy
4b01d11ebe
Merge pull request #160 from jhcpeixoto/master
CORS FIX
2021-06-25 15:56:26 +02:00
Joaquim Peixoto
ef19ecedb7 CORS FIX 2021-06-25 14:54:13 +01:00
Flam3rboy
075db9523b
Merge pull request #159 from fosscord/l10n_master
New Crowdin updates
2021-06-24 23:06:21 +02:00
Flam3rboy
02d03fd662 New translations common.json (Hungarian) 2021-06-24 23:06:09 +02:00
Flam3rboy
787035fb6d New translations auth.json (Hungarian) 2021-06-24 23:06:08 +02:00
Flam3rboy
8f5bdf17ab 🐛 docker file 2021-06-24 17:22:00 +02:00
Flam3rboy
fe2d62cd47 allow bot tokens 2021-06-24 08:52:24 +02:00
Flam3rboy
ae1fc50c84 Message reply 2021-06-24 08:52:08 +02:00
Flam3rboy
4fc395823d 🚧 init 2021-06-24 08:51:39 +02:00
Flam3rboy
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +02:00
Flam3rboy
c845d19226 🐛 fix .env file not loading 2021-06-23 19:15:37 +02:00
Flam3rboy
9b3f1f5a64 1.3.18 2021-06-23 18:06:41 +02:00
Flam3rboy
9a6c66484d 1.3.17 2021-06-23 18:06:10 +02:00
Flam3rboy
e3dda743af 🐛 fix checkToken 2021-06-23 18:06:00 +02:00
Flam3rboy
295fbabf0d 🎨 move widget templates to assets 2021-06-22 20:58:17 +02:00
Flam3rboy
e525977981
Merge pull request #157 from Umimaso/widget
feat: add widget endpoints, routing for unversioned api requests
2021-06-22 18:43:08 +02:00
Flam3rboy
bb0dec2a9f 🎨 clean up code
widget.json.ts: just return instead of long if statement + add ?. operators for error handling
widget.png.ts make path universal
widget.ts: remove unnecessary guild db query as getPermission already checks it
Widget.ts make parameters required
2021-06-22 18:41:21 +02:00
Flam3rboy
edcdf4d819
Merge pull request #158 from fosscord/l10n_master
New Crowdin updates
2021-06-20 14:57:26 +02:00
Flam3rboy
8b6cc4c759 New translations common.json (Lithuanian) 2021-06-20 13:46:01 +02:00
Flam3rboy
70368a7203 New translations auth.json (Lithuanian) 2021-06-20 13:46:01 +02:00
Flam3rboy
cd5b0fa37e
Merge pull request #151 from fosscord/l10n_master
New Crowdin updates
2021-06-19 17:28:32 +02:00
Umimaso
4c0c09c8bc feat: add routing for unversioned api requests
Create new route for /api which can handle routing of unversioned
requests. Update regex for NO_AUTHORIZATION_ROUTES to support
unversioned requests.
2021-06-19 15:49:49 +01:00
Umimaso
f10df31f5c feat: add widget endpoints
Implemented the four widget related endpoints of the api. Partial user
object being returned as part of the widget.json endpoint [1] is an
intentional choice related to privacy [2].

The widget.json endpoint will require additional changes upon completion
of other work. Member details will need to return extra key/values for
connected users to voice channels. An additional avatar_url value will
hold an unique avatar url for the user + guild, fetched via a CDN
endpoint widget-avatars.

New dependencies `canvas` and `image-size`. Canvas is used to create the
widget.png endpoint image [3]. Image-size is used to set the canvas'
size to match the widget template images.

Use regex in determining if a NO_AUTHORIZATION_ROUTES is hit or not.

[1] https://discord.com/developers/docs/resources/guild#get-guild-widget
[2] https://github.com/discord/discord-api-docs/issues/1287
[3] https://discord.com/developers/docs/resources/guild#get-guild-widget-image

Closes: #9, #110
2021-06-19 14:50:11 +01:00
Flam3rboy
df321dbc04 New translations common.json (Lithuanian) 2021-06-19 13:50:48 +02:00