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

504 Commits

Author SHA1 Message Date
Samuel
a2ac96924d New translations auth.json (Polish) 2021-10-18 21:40:41 -04:00
Flam3rboy
01fb2dbf4d use better-sqlite3 as default db 2021-10-18 22:55:54 +02:00
Flam3rboy
2a85285e63 🐛 fix bulk delete 2021-10-18 22:55:36 +02:00
Samuel
3482735aca Merge pull request #483 from fosscord/translation
New Crowdin updates
2021-10-18 14:38:43 -04:00
Samuel
ddcdb5b9c6 New translations common.json (Portuguese) 2021-10-18 14:23:33 -04:00
Samuel
0c3fa94c34 New translations common.json (Chinese Simplified) 2021-10-18 14:23:27 -04:00
Samuel
bcd412146d New translations common.json (Chinese Traditional) 2021-10-18 14:23:23 -04:00
Samuel
04df1d1591 New translations common.json (Portuguese, Brazilian) 2021-10-18 14:23:21 -04:00
Samuel
157c2b17a4 New translations auth.json (Russian) 2021-10-18 14:23:13 -04:00
Samuel
ba1fc2a56c New translations auth.json (Portuguese) 2021-10-18 14:23:12 -04:00
Samuel
795dac6d1c New translations auth.json (Slovak) 2021-10-18 14:23:04 -04:00
Samuel
cdf740d123 New translations auth.json (Turkish) 2021-10-18 14:22:53 -04:00
Samuel
76721e17c6 New translations auth.json (Portuguese, Brazilian) 2021-10-18 14:22:39 -04:00
Samuel
519ec4b076 New translations auth.json (Chinese Traditional) 2021-10-18 14:22:37 -04:00
Samuel
2597ed9658 New translations auth.json (Chinese Simplified) 2021-10-18 14:22:34 -04:00
Flam3rboy
d504cdf0ee message performance 2021-10-18 18:34:48 +02:00
Flam3rboy
14edf8899a 🌐 remove unused locales 2021-10-18 18:34:03 +02:00
Samuel
e771c9ea2e New translations common.json (Portuguese) 2021-10-18 18:18:47 +02:00
Samuel
a5c38ace4d New translations common.json (Chinese Simplified) 2021-10-18 18:18:41 +02:00
Samuel
5d643ff755 New translations common.json (Persian) 2021-10-18 18:18:38 +02:00
Samuel
64044a8278 New translations common.json (Sinhala) 2021-10-18 18:18:34 +02:00
Samuel
4c6a5b54c9 New translations auth.json (Portuguese) 2021-10-18 18:18:31 +02:00
Samuel
4556ceef65 New translations auth.json (Sinhala) 2021-10-18 18:18:05 +02:00
Samuel
12692599a1 New translations auth.json (Persian) 2021-10-18 18:18:03 +02:00
Samuel
792a141857 New translations auth.json (Chinese Traditional) 2021-10-18 18:17:59 +02:00
Samuel
8a716f9f72 New translations auth.json (Chinese Simplified) 2021-10-18 18:17:58 +02:00
Flam3rboy
45efdb7ce4 vertically scale bundle 2021-10-18 17:38:31 +02:00
Flam3rboy
435e67b7a9 Revert "fix: make API dockerfile use correct setup steps"
This reverts commit aae55cfe71.
2021-10-18 14:36:57 +02:00
Samuel
508fbce94e fix default cdn endpoint for message attachments 2021-10-18 11:02:08 +02:00
Diego Magdaleno
648c9b738c Merge branch 'docker-fix' of https://github.com/hbjydev/fosscord-server into hbjydev-docker-fix 2021-10-17 16:51:17 -05:00
Kuna
1de902108d remove template comment 2021-10-17 21:54:59 +03:00
uurgothat
3a118841a0 oauth2 route draft to return an empty array 2021-10-17 21:51:19 +03:00
Flam3rboy
f4ce00800d 🐛 fix docker image 2021-10-17 02:12:10 +02:00
Flam3rboy
78778c8eee 🐛 fix typing 2021-10-17 01:53:29 +02:00
Flam3rboy
95f5fb3b93 🎨 reformatted 2021-10-17 00:41:24 +02:00
Flam3rboy
38106d9cbb 🎨 clean up instances on start 2021-10-17 00:41:21 +02:00
Flam3rboy
a43ee81b4a 🐛 user settings 2021-10-17 00:41:06 +02:00
Flam3rboy
aec3834fe5 ⬆️ update mnjsf 2021-10-16 21:48:57 +02:00
Chris Chrome
3669823ee7 Fix /gateway/bot
https://canary.discord.com/channels/806142446094385153/806142446529806367/898928295771521125
2021-10-16 09:43:21 -04:00
Flam3rboy
c48eb95af0 🔒 update modules 2021-10-15 23:51:31 +02:00
Flam3rboy
69b3802a0f 🔒 update set-value & tar 2021-10-15 23:43:40 +02:00
Flam3rboy
f272a11230 🐛 fix message sending 2021-10-15 18:55:26 +02:00
Samuel
0c811dbee9 Merge pull request #455 from fosscord/sticker
Stickers
2021-10-15 18:39:57 +02:00
Flam3rboy
3999603391 sticker events 2021-10-15 18:39:28 +02:00
Hayden Young
685cfaf06a fix: update source paths 2021-10-15 14:01:52 +00:00
Samuel
781812a8c6 Merge pull request #462 from hbjydev/unit-tests-expanded
Add unit tests for Gateway endpoints
2021-10-15 15:53:15 +02:00
Hayden Young
aae55cfe71 fix: make API dockerfile use correct setup steps 2021-10-15 13:49:55 +00:00
Hayden Young
f9568d8fc2 feat: add a Router & Route snippet for vscode 2021-10-15 13:11:35 +00:00
Flam3rboy
e1b991dfd1 Merge branch 'master' into sticker 2021-10-15 13:32:26 +02:00
Hayden Young
4100932a8b feat: add tests to gateway routes, split into own routers 2021-10-15 11:05:51 +00:00
Hayden Young
46a8d0f883 chore(merge): remote -> local 2021-10-15 11:03:23 +00:00
Flam3rboy
182de09ccc 🐛 fix unittests 2021-10-15 13:00:23 +02:00
Samuel
d9f4af661b Merge pull request #460 from fosscord/dev
merge dev in master
2021-10-15 00:49:33 +02:00
Flam3rboy
bbd6b0085e 🎨 exclude healthz/readyz from auth 2021-10-15 00:46:09 +02:00
Flam3rboy
d828a5e03d Merge branch 'master' into pr/hbjydev/454 2021-10-15 00:44:19 +02:00
Samuel
dd33d080c1 Merge pull request #448 from Mr2u/master
Route #10 Prune and prune count
2021-10-15 00:35:32 +02:00
Flam3rboy
b844b6b39c 🐛 fix prune 2021-10-15 00:35:18 +02:00
Flam3rboy
85592a980e speed up message query 2021-10-15 00:35:01 +02:00
Flam3rboy
bc85d6ff86 🎨 reformat 2021-10-15 00:03:35 +02:00
Flam3rboy
fb3f957f30 🐛 fix sticker packs 2021-10-15 00:03:19 +02:00
Flam3rboy
d8f77c687e 🐛 fix message sticker sending 2021-10-15 00:03:05 +02:00
Flam3rboy
f38ebe65ed sticker upload 2021-10-15 00:02:23 +02:00
Flam3rboy
5cc5ea3f04 🎨 do not automatically create default guild 2021-10-14 21:25:17 +02:00
Flam3rboy
9e87caaae6 🎨 restructure 2021-10-14 19:47:10 +02:00
Hayden Young
35ef010ba9 feat: implement a database check on the healthz and readyz probes, remove /-/metrics 2021-10-14 18:47:05 +01:00
Flam3rboy
88edaba3ab sticker packs 2021-10-14 19:46:53 +02:00
Flam3rboy
ded81bcd29 stickers 2021-10-14 19:46:45 +02:00
Hayden Young
d5057ab888 feat: initial addition of a healthz, readyz and metrics route 2021-10-14 18:27:19 +01:00
Flam3rboy
4e6ffcbc4f 🐛 fix migration + autojoin 2021-10-14 00:32:15 +02:00
Maddy
d3853a3d7a added route /guilds/:id/prune GET count and POST prune.
Edited Member entity to include last_message_id to avoid searching for every members last message when pruning
When a message is sent through /channels/:id/messages last_message_id of sending Member is updated.
2021-10-13 19:19:46 +11:00
Flam3rboy
dbd327f89d Merge pull request #430 from Thesourtimes/master
Implement GIF route
2021-10-11 16:34:45 +02:00
Flam3rboy
976f76d524 🎨 gifs 2021-10-11 16:34:18 +02:00
Flam3rboy
2af567b522 🐛 fix #371 2021-10-11 15:21:11 +02:00
Flam3rboy
4a34792be6 Merge branch 'master' into pr/Thesourtimes/430 2021-10-11 15:13:16 +02:00
Flam3rboy
a8cae71390 Merge branch 'master' into pr/TheArcaneBrony/434 2021-10-10 19:02:08 +02:00
Flam3rboy
c20d87da28 🐛 fix modify role.permissions 2021-10-10 19:00:50 +02:00
Flam3rboy
4b811d3b51 🐛 fix vanity url 2021-10-10 18:28:38 +02:00
The Arcane Brony
c9e827b3e9 Fix duplicate key 2021-10-10 17:55:48 +02:00
Flam3rboy
4d4e94d8d7 🐛 fix emojis route 2021-10-10 14:10:27 +02:00
Flam3rboy
bffe2a85bd Merge branch 'master' into pr/LoboMetalurgico/424 2021-10-10 12:50:45 +02:00
Flam3rboy
4722dd5d97 🐛 fix tsc compiler 2021-10-10 12:35:46 +02:00
Flam3rboy
a61cbbe40c 🐛 convert bigint literal to object 2021-10-10 11:08:55 +02:00
Flam3rboy
dc85a79498 🎨 clean up imports + classes 2021-10-10 11:03:32 +02:00
Flam3rboy
dbe2258d97 🎨 clean up dependencies 2021-10-10 11:03:04 +02:00
Lobo Metalúrgico
d359652b24 Merge branch 'fosscord:master' into milestoneV1/routes/implement/emojis 2021-10-09 23:44:59 -03:00
xnacly
484758b317 random guest username generation added 2021-10-09 22:49:29 +02:00
Lobo Metalúrgico
5c4774a6f9 (api): fix some issues 2021-10-09 13:50:34 -03:00
Flam3rboy
a1afb9b6e1 🐛 rewrite locale en to en-US 2021-10-09 18:07:01 +02:00
Flam3rboy
d6bc17a8c7 added read state 2021-10-09 17:33:28 +02:00
uurgothat
cf7383763d Implement GIFs 2021-10-09 18:23:16 +03:00
Lobo Metalúrgico
e642b6194a (api): implement post on emoji route 2021-10-09 11:36:58 -03:00
Lobo Metalúrgico
ec8b59c5e5 (api): add patch to emoji route 2021-10-09 10:52:43 -03:00
Lobo Metalúrgico
7cfca122ae Merge remote-tracking branch 'upstream/master' into milestoneV1/routes/implement/emojis 2021-10-09 10:39:26 -03:00
Flam3rboy
d5cdc9198c 🎨 cdn now also works without setting a public endpoint 2021-10-09 14:46:59 +02:00
Flam3rboy
83332fab42 🐛 fix typing 2021-10-09 14:00:28 +02:00
Flam3rboy
77aab2bdd3 🎨 do not auto guest register on login/register page 2021-10-09 13:04:46 +02:00
Flam3rboy
37a2410526 🐛 fix claim account 2021-10-09 13:04:27 +02:00
Flam3rboy
732f88cbb2 added guestsRequireInvite to config 2021-10-09 12:54:03 +02:00
Flam3rboy
6944c76b43 🐛 fix password changing 2021-10-09 12:53:52 +02:00
Lobo Metalúrgico
8bc98e5f68 (api): fix route name 2021-10-08 23:49:45 -03:00
Lobo Metalúrgico
e0839677d5 (api): inital emojis route implementation 2021-10-08 23:45:12 -03:00
Flam3rboy
41a193dff0 🎨 fix imports with new build script 2021-10-09 01:45:02 +02:00
Flam3rboy
826b2c9820 🐛 fix build 2021-10-09 01:44:44 +02:00
Flam3rboy
3b74fa9299 bundle build script 2021-10-08 10:43:43 +02:00
Flam3rboy
29516da90f Merge branch 'compiler-change' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/418-1 2021-10-07 18:22:15 +02:00
Flam3rboy
8bb38139c2 🐛 fix swc config 2021-10-07 18:21:17 +02:00
Flam3rboy
c75c6f508d 🐛 fix types + swcrc configs 2021-10-07 18:20:03 +02:00
Flam3rboy
b5905c1bba 🐛 fix swcrc config: rewrite import -> require 2021-10-07 09:59:04 +02:00
The Arcane Brony
7db9086dd0 Compiler test 2021-10-06 18:20:22 +02:00
Flam3rboy
d99e5c565a ⬆️ update packages 2021-10-06 17:39:32 +02:00
Flam3rboy
1296600de9 ⬆️ lambert-server@1.2.11 2021-10-05 20:47:12 +02:00
Flam3rboy
b0709e4eb9 🐛 fix set user settings 2021-10-05 20:18:14 +02:00
Flam3rboy
ce63639090 🐛 fix user projection 2021-10-05 19:52:42 +02:00
Flam3rboy
b76961657e 🎨 reformatted 2021-10-05 19:37:54 +02:00
Flam3rboy
89ff4bc685 🐛 fix client locale 2021-10-05 19:37:35 +02:00
Flam3rboy
1bc56e5131 added autoJoin guild to config 2021-10-05 19:37:20 +02:00
Flam3rboy
214d6b821c 🎨 move field error to util 2021-10-05 19:34:13 +02:00
Flam3rboy
9cf018d737 add User.register() method 2021-10-05 19:33:23 +02:00
Flam3rboy
2bd5c06bf1 ⬆️ update mnjsf 2021-10-05 19:32:42 +02:00
Flam3rboy
9d2f0ddf5c 🐛 fix guild create with client template 2021-10-05 17:00:43 +02:00
Flam3rboy
2c3fe9bd9e auto register guest account 2021-10-05 16:37:30 +02:00
Flam3rboy
7b63016872 generalize primary column to work with mongodb object id 2021-10-04 22:43:51 +02:00
Flam3rboy
b1c1b681b9 Merge branch 'master' of http://github.com/fosscord/fosscord-server 2021-10-04 22:06:17 +02:00
Flam3rboy
7b58dc3a3d ⬆️ update dependencies 2021-10-04 22:01:05 +02:00
Flam3rboy
b584af656d 🚧 different db engines 2021-10-04 21:57:24 +02:00
Flam3rboy
6ebc45a5da Merge pull request #412 from TheArcaneBrony/master
Add subscription plans so the client doesn't crash
2021-10-03 23:32:28 +02:00
Flam3rboy
f6b7a3c521 🚚 rename id -> sku_id 2021-10-03 23:32:10 +02:00
The Arcane Brony
c99360be2a Add subscription plans so the client doesn't crash 2021-10-03 23:17:34 +02:00
Flam3rboy
2f7182ca3d 🐛 fix message reactions 2021-10-03 22:53:01 +02:00
afeuerstein
e86935f2bf fix request failiure with error code 400 2021-10-03 20:06:03 +02:00
Flam3rboy
4a3cd74942 🐛 fix registration 2021-10-03 01:59:38 +02:00
Flam3rboy
7268779dc3 add `right` option to route() 2021-10-03 01:55:57 +02:00
Flam3rboy
1716d92849 🎨 restructure gateway 2021-10-02 15:12:47 +02:00
The Arcane Brony
4901233d0f Merge branch 'master' of https://github.com/TheArcaneBrony/fosscord-server 2021-10-01 22:44:58 +02:00
The Arcane Brony
2cd210cb7c Add default value to guild discovery" 2021-10-01 22:43:58 +02:00
TheArcaneBrony
7768d09984 Merge branch 'fosscord:master' into master 2021-10-01 22:12:43 +02:00
The Arcane Brony
40f7e7b7d4 Add setting to show all guilds in discovery, fix query for guild discovery 2021-10-01 22:11:56 +02:00
Flam3rboy
3fa2ded35a 🐛 fix schema + user modify not working 2021-10-01 21:30:36 +02:00
Flam3rboy
17081d4483 registration disabled notice 2021-10-01 20:11:05 +02:00
uurgothat
d23f4bbe98 hotfix for misc routes 2021-09-30 18:57:53 +03:00
uurgothat
d4a216ab2e Add misc routes 2021-09-30 17:57:51 +03:00
uurgothat
8024f2061d store improvements 2021-09-29 17:28:13 +03:00
Flam3rboy
81923a0729 🐛 fix channel permission overwrites 2021-09-26 11:34:06 +02:00
Flam3rboy
4b2e93c84b add private and public endpoint 2021-09-25 23:55:19 +02:00
Flam3rboy
1c49d82400 🐛 message attachment url 2021-09-25 23:54:52 +02:00
Flam3rboy
e2a22da5c4 🐛 fix #392 2021-09-25 04:20:35 +02:00
Flam3rboy
41f05a5abc 🐛 fix guild template create 2021-09-25 04:20:11 +02:00
Flam3rboy
7f0338aea0 🎨 sort openapi tags by alphabet 2021-09-23 19:36:35 +02:00
Flam3rboy
390493b8d4 🐛 fix install script 2021-09-23 16:30:28 +02:00
Flam3rboy
c398c1512e 🐛 fix (pre) install scripts 2021-09-23 16:03:50 +02:00
Flam3rboy
e9c3f7ee1c example value in documentation 2021-09-21 23:29:17 +02:00
Flam3rboy
22c744398c unit tests expect event 2021-09-21 23:13:31 +02:00
Flam3rboy
2a094c603a generate openapi documentation 2021-09-21 22:52:30 +02:00
Flam3rboy
eb2f447d96 🐛 fix unittests 2021-09-20 23:35:37 +02:00
Flam3rboy
cc33e87a14 add option to disable all rate limits 2021-09-20 23:35:32 +02:00
Flam3rboy
8d611abe45 🐛 fix errror handler 2021-09-20 23:35:04 +02:00
Flam3rboy
912d1c31d8 🎨 rewrite imports 2021-09-20 23:34:54 +02:00
Flam3rboy
16a3d1b334 Merge branch 'master' into unittests 2021-09-20 21:49:42 +02:00
Flam3rboy
5b3ac6dadb 🐛 fix relationships 2021-09-20 21:34:33 +02:00
Flam3rboy
fe34c5da87 Merge pull request #382 from fosscord/auto-delete-relations
Auto delete relations
2021-09-20 21:27:08 +02:00
Flam3rboy
62f9b35185 🐛 fix .delete -> add onDelete: "CASCADE" 2021-09-20 20:22:56 +02:00
Flam3rboy
2d183f4c45 Update index.ts 2021-09-20 18:33:33 +02:00
Chris Chrome
a4811d86ce oRdEr Of OpErAtIoNs 2021-09-20 12:16:17 -04:00
Chris Chrome
86cbd18ba4 Merge remote-tracking branch 'origin/master' 2021-09-20 11:45:13 -04:00
Flam3rboy
dd9ec0c6a0 accept invite page 2021-09-20 17:38:16 +02:00
Chris Chrome
013a4b8bc8 Fix one thing, another problem pops up
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2021-09-20 11:29:37 -04:00
Flam3rboy
6c0a69d95b ⬆️ update test client 2021-09-20 17:15:47 +02:00
Flam3rboy
ce09e01c21 🚧 auto delete relations 2021-09-20 17:11:22 +02:00
Chris Chrome
12a151eb2d Delete messages before deleting channel
Might need some testing, but seems pretty solid for one line of code lol
2021-09-20 08:58:06 -04:00
Flam3rboy
3c8b0f43c4 Merge branch 'master' into auto-delete-relations 2021-09-19 19:09:13 +02:00
Flam3rboy
e6839719a6 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-19 18:59:54 +02:00
Flam3rboy
994406e5ce 🎨 remove deleteMessageAttachments and move to entity 2021-09-19 18:46:22 +02:00
Flam3rboy
c50648ddcc 🚚 move handleFile to cdn 2021-09-19 18:44:49 +02:00
Flam3rboy
75e948b62b 🎨 user is verified by default 2021-09-19 18:43:25 +02:00
The Arcane Brony
157f29536a Fix environment variable name to work on non-Windows platforms 2021-09-18 21:03:23 +02:00
Flam3rboy
fa9f512c90 Merge pull request #375 from TheArcaneBrony/request-logging
Add request logging (with env var: log-requests)
2021-09-18 20:45:30 +02:00
The Arcane Brony
0d41e18065 Add response code white/blacklisting 2021-09-18 20:43:00 +02:00
AlTech98
e5120c0c5b Merge branch 'fosscord:master' into fix-dm 2021-09-18 18:37:06 +02:00
AlTech98
ada95b6c39 Removed ChannelService, more fixes 2021-09-18 18:36:29 +02:00
The Arcane Brony
0d3562de76 Add request logging (with env var: log-requests)
Request logging is enabled when the log-request environment variable is set.
2021-09-18 18:13:15 +02:00
Flam3rboy
e628c92a44 Update connections.ts 2021-09-18 16:24:42 +02:00
The Arcane Brony
55ae0d6ae9 Add /users/@me/connections 2021-09-18 16:11:03 +02:00
Flam3rboy
a3484e64e4 route middleware test option 2021-09-18 11:56:06 +02:00
AlTech98
5d6fa7697a Merge branch 'fosscord:master' into fix-dm 2021-09-18 08:03:52 +02:00
Flam3rboy
a7bf295591 jest automatic tests 2021-09-18 01:50:29 +02:00
Flam3rboy
1e331b7c9d 🎨 use typescript plugin that converts to relative paths 2021-09-18 01:50:20 +02:00
Flam3rboy
69550e535e generate test responses 2021-09-18 01:49:36 +02:00
Flam3rboy
54412a3364 📝 add default route description to all routes 2021-09-18 01:49:17 +02:00
Flam3rboy
181afe7e09 🐛 fix guild create icon 2021-09-18 00:19:53 +02:00
Flam3rboy
859fdd679b 🐛 fix body parse treating null not as undefined (except for icons/avatars) 2021-09-17 23:42:40 +02:00
AlTech98
50ab5e7d49 Fix icon, owner_id change and channel deletion for group DMs 2021-09-17 18:29:02 +02:00
AlTech98
6d0f9abe0d Merge branch 'fosscord:master' into fix-dm 2021-09-17 18:13:02 +02:00
AlTech98
c4cfa42c60 Fix GET /users/@me/channels 2021-09-17 13:59:21 +02:00
Flam3rboy
4003fef534 🐛 fix vanity url 2021-09-16 22:03:30 +02:00
AlTech98
d630f09f80 Implemented DMs and group DMs 2021-09-16 21:33:36 +02:00
AlTech98
0506d40aa1 Dummy sticker-packs routes 2021-09-16 21:31:39 +02:00
Flam3rboy
b446a3110b ⬆️ update package 2021-09-16 20:55:50 +02:00
Flam3rboy
60ee234891 Revert "fix #128"
This reverts commit 8893fd16d9.
2021-09-16 20:49:17 +02:00
Flam3rboy
173f03c596 Revert "fix #129"
This reverts commit 8f862f0e5d.
2021-09-16 20:49:12 +02:00
Flam3rboy
d2d7dd0561 Revert "🚧 webhook"
This reverts commit df2b83ac15.
2021-09-16 20:49:07 +02:00