1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00
Commit Graph

956 Commits

Author SHA1 Message Date
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
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +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
Flam3rboy
36508c4dc1 New translations auth.json (Lithuanian) 2021-06-19 13:50:47 +02:00
Flam3rboy
f18b651dbd New translations auth.json (Portuguese) 2021-06-09 17:52:36 +02:00
Flam3rboy
8bd1dc2ff9 New translations common.json (Portuguese) 2021-06-08 17:56:39 +02:00
Flam3rboy
761633e119 New translations common.json (Portuguese) 2021-06-07 17:56:59 +02:00
Flam3rboy
cbe60955b4 Guild invites 2021-06-02 19:22:22 +02:00
Flam3rboy
491565aef8 add explicit types to req and res 2021-05-31 21:03:09 +02:00
Flam3rboy
536900d255 🚧 dm channels 2021-05-31 20:32:23 +02:00
Flam3rboy
711dc1c4d4 🐛 fix getPublicUser 2021-05-30 22:14:35 +02:00
Flam3rboy
ea58f5b535 npm i @fosscord/server-util@1.3.14 2021-05-30 22:14:19 +02:00
Flam3rboy
abfe9b03cd 🐛 fix empty author 2021-05-30 22:12:46 +02:00
Flam3rboy
0feb3b635a Friends Relationships 2021-05-30 22:12:29 +02:00
Flam3rboy
3ccf598174 New translations common.json (Arabic) 2021-05-30 18:43:35 +02:00
Flam3rboy
b7b822316d New translations auth.json (Arabic) 2021-05-30 18:43:34 +02:00
Flam3rboy
c534248e0f Channel permission overwrites 2021-05-30 17:16:14 +02:00
Flam3rboy
5aaf803837 ⬆️ npm i @fosscord/server-util@1.3.13 2021-05-30 17:06:14 +02:00
Flam3rboy
f60d929cc3 ⬆️ npm i @fosscord/server-util@1.3.12 2021-05-30 16:46:20 +02:00
Flam3rboy
6960774210 increase upload limit 2021-05-30 01:53:01 +02:00
Flam3rboy
e34e30dbb9 ⬆️ npm i @fosscord/server-util@1.3.11 2021-05-30 01:46:32 +02:00
Flam3rboy
7684f7f398 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-05-30 01:44:50 +02:00
Flam3rboy
3254c31e02 user avatar 2021-05-30 01:44:15 +02:00
Flam3rboy
d61bbe8293 message attachments 2021-05-30 01:44:09 +02:00
Flam3rboy
c6320db551
Merge pull request #152 from luth31/master
Move TS compilation to docker image build
2021-05-29 21:37:07 +02:00
Paul Munteanu
20cbccf6cf
Remove obsolete npx patch-package command 2021-05-29 22:36:41 +03:00
Paul Munteanu
fbfe757c9e
Dockerfile: run app instead of recompiling 2021-05-29 22:33:31 +03:00
Paul Munteanu
90f2536e41
Merge branch 'master' of github.com:luth31/fosscord-api 2021-05-29 22:27:09 +03:00
Paul Munteanu
04c5e490d5
Build on start for the CONTRIBUTORS 2021-05-29 22:26:45 +03:00
Paul Munteanu
a4c5cd360d Merge branch 'fosscord:master' into master 2021-05-29 21:46:47 +03:00
Paul Munteanu
5e7771c4ac
Compile TS during Docker image build 2021-05-29 21:35:39 +03:00
Flam3rboy
b59d32f9bb improve asset caching 2021-05-29 20:04:09 +02:00
Paul Munteanu
cfe7338dc6 Merge branch 'fosscord:master' into master 2021-05-29 19:36:00 +03:00
Flam3rboy
a86efe97bb 🎨 reformat 2021-05-29 18:22:52 +02:00
Paul Munteanu
553a3d5daf Merge branch 'fosscord:master' into master 2021-05-29 16:51:55 +03:00
Flam3rboy
1383911771 automatically embed links in message 2021-05-28 22:40:34 +02:00