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

382 Commits

Author SHA1 Message Date
developomp
04a739a5b9 prettier formatted /util 2021-10-20 09:16:59 +09:00
Flam3rboy
6299d45114 use better-sqlite3 as default db 2021-10-18 22:55:54 +02:00
Flam3rboy
f6b00d2fcd vertically scale bundle 2021-10-18 17:38:31 +02:00
Flam3rboy
70d0d11ffd Revert "fix: make the CDN build correctly"
This reverts commit 5fea8b21d1.
2021-10-18 14:38:34 +02:00
uurgothat
89c3ec1b4a external templates + fosscord draft and more configs 2021-10-18 04:36:49 +03:00
Diego Magdaleno
413d9d5060
Merge branch 'docker-fix' of https://github.com/hbjydev/fosscord-server into hbjydev-docker-fix 2021-10-17 16:51:17 -05:00
Flam3rboy
842d6ea905 config override file 2021-10-17 22:27:54 +02:00
uurgothat
3b6fc60783 Add discord template support 2021-10-17 23:20:46 +03:00
Hayden Young
5fea8b21d1 fix: make the CDN build correctly 2021-10-17 11:55:54 +00:00
Flam3rboy
6c46a46cf0 ⬆️ update sqlite3 2021-10-17 01:39:41 +02:00
Flam3rboy
a8ba406222 migration for timestamp migrations 2021-10-17 01:23:51 +02:00
Samuel
a152cae899
Merge pull request #467 from hbjydev/fix-migration-column-issue
Fix migration timestamp column data type issue
2021-10-17 01:14:43 +02:00
Flam3rboy
9fa1081803 🐛 default session activites 2021-10-17 00:57:31 +02:00
Flam3rboy
f2cb03da4b add presence migration 2021-10-17 00:51:51 +02:00
Flam3rboy
5249e923a0 🎨 reformatted 2021-10-17 00:41:24 +02:00
Flam3rboy
0ea7d5f35c User presence/status 2021-10-17 00:39:54 +02:00
Flam3rboy
bd0b941fea added session + memberlist event 2021-10-17 00:38:56 +02:00
Flam3rboy
395835a937 ⬆️ update mnjsf 2021-10-16 21:48:57 +02:00
Flam3rboy
135eb11485 🔒 update modules 2021-10-15 23:51:31 +02:00
Flam3rboy
47d3d0e3fa 🔒 update set-value & tar 2021-10-15 23:43:40 +02:00
Flam3rboy
451e27998f 🐛 fix migration timestampe 2021-10-15 23:29:59 +02:00
Hayden Young
b9d852a4bd
fix: make timestamp column a bigint 2021-10-15 19:20:16 +01:00
Samuel
1bbf789a7e
Merge pull request #455 from fosscord/sticker
Stickers
2021-10-15 18:39:57 +02:00
Flam3rboy
a64f79afda sticker events 2021-10-15 18:39:28 +02:00
Flam3rboy
34e2392b48 automatically run db migrations 2021-10-15 18:39:19 +02:00
Flam3rboy
9e2553c3a1 Merge branch 'master' into sticker 2021-10-15 13:32:26 +02:00
Hayden Young
5ccff54e4d chore(merge): remote -> local 2021-10-15 11:03:23 +00:00
Flam3rboy
edbd299777 🐛 fix unittests 2021-10-15 13:00:23 +02:00
Samuel
d1c0753bc0
Merge pull request #448 from Mr2u/master
Route #10 Prune and prune count
2021-10-15 00:35:32 +02:00
Flam3rboy
0994b47a67 🐛 fix prune 2021-10-15 00:35:18 +02:00
Flam3rboy
88425f87ec 🎨 reformat 2021-10-15 00:03:35 +02:00
Flam3rboy
c1d786b6e1 🐛 fix sticker packs 2021-10-15 00:03:19 +02:00
Flam3rboy
0ccc478c54 🐛 fix message sticker sending 2021-10-15 00:03:05 +02:00
Flam3rboy
d2df6f99be sticker upload 2021-10-15 00:02:23 +02:00
Flam3rboy
9200fb546c sticker db entities 2021-10-14 19:47:02 +02:00
Flam3rboy
8257e2631a 🐛 fix migration + autojoin 2021-10-14 00:32:15 +02:00
Mr2u
625853a47e
Merge branch 'fosscord:master' into master 2021-10-13 19:33:39 +11:00
Maddy
808bf0a74c 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
f2e8e2e031 improve memory managment 2021-10-12 21:53:57 +02:00
Flam3rboy
7053d9a8b8 🎨 gifs 2021-10-11 16:34:18 +02:00
Flam3rboy
3aa8470eef
Merge pull request #435 from TheArcaneBrony/change-enums-to-number
Change enums to numbers
2021-10-11 15:06:00 +02:00
Flam3rboy
207d9137c7
Update Rights.ts 2021-10-11 15:04:03 +02:00
Erkin Alp Güney
601c850b66
Added more rights, and explained existing ones 2021-10-10 23:16:24 +03:00
The Arcane Brony
7d36d3d62c Put local types back 2021-10-10 21:30:46 +02:00
The Arcane Brony
a11d693f43 Change enums to numbers 2021-10-10 20:34:45 +02:00
Flam3rboy
3c4764fbc8 Merge branch 'master' into pr/TheArcaneBrony/434 2021-10-10 19:02:08 +02:00
Flam3rboy
aa25dac99f 🐛 fix modify role.permissions 2021-10-10 19:00:50 +02:00
Flam3rboy
487e31b98c
Merge branch 'master' into remove-vanity-url 2021-10-10 18:56:46 +02:00
Flam3rboy
0cabe8ed4c 🎨 update migration script 2021-10-10 18:31:04 +02:00
Flam3rboy
781e1bf6d0 Merge branch 'remove-vanity-url' of https://github.com/thearcanebrony/fosscord-server into pr/TheArcaneBrony/434 2021-10-10 18:28:52 +02:00
Flam3rboy
fd152e8b6d added vanity db migration 2021-10-10 18:28:50 +02:00
The Arcane Brony
d5fcad3738 forgot to fix primary columns on invites 2021-10-10 18:12:51 +02:00
The Arcane Brony
79aee5145b Fix duplicate key 2021-10-10 17:55:48 +02:00
Flam3rboy
82205520ed 🐛 fix Emoji missing in identify 2021-10-10 14:31:13 +02:00
Flam3rboy
2f623b2a22 🎨 emoji db migration 2021-10-10 14:09:54 +02:00
Flam3rboy
33103cc452 🐛 fix cdn 2021-10-10 14:08:52 +02:00
Flam3rboy
92de98c487 Merge branch 'master' into pr/LoboMetalurgico/424 2021-10-10 12:50:45 +02:00
Flam3rboy
7147f150d9 🙈 remove console.log 2021-10-10 12:42:12 +02:00
Flam3rboy
3b4e026ead 🐛 fix tsc compiler 2021-10-10 12:35:46 +02:00
Flam3rboy
74bd98737a 🎨 clean up imports + classes 2021-10-10 11:03:32 +02:00
Flam3rboy
ce4e751292 🎨 clean up dependencies 2021-10-10 11:03:04 +02:00
Lobo Metalúrgico
a801dfc478
Merge branch 'fosscord:master' into milestoneV1/routes/implement/emojis 2021-10-09 23:44:59 -03:00
Flam3rboy
da030aaff2 added read state 2021-10-09 17:33:28 +02:00
Flam3rboy
7e5c51652b handleFile() now returns mime_type and size 2021-10-09 17:25:26 +02:00
Lobo Metalúrgico
3a5c511f1b
Merge remote-tracking branch 'upstream/master' into milestoneV1/routes/implement/emojis 2021-10-09 10:39:26 -03:00
Flam3rboy
7aeeb6833d Merge branch 'master' of http://github.com/fosscord/fosscord-server 2021-10-09 14:31:23 +02:00
Flam3rboy
72ac437e92 🐛 fix array key in config 2021-10-09 14:31:19 +02:00
Flam3rboy
d1844b65d1 added guestsRequireInvite to config 2021-10-09 12:54:03 +02:00
Lobo Metalúrgico
90af904661
(api): inital emojis route implementation 2021-10-08 23:45:12 -03:00
Flam3rboy
d842478d06 🐛 fix build 2021-10-09 01:44:44 +02:00
Flam3rboy
b44f356d9e bundle build script 2021-10-08 10:43:43 +02:00
Flam3rboy
c6bc68c4aa 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
1bef11aaaa 🐛 fix swc config 2021-10-07 18:21:17 +02:00
Flam3rboy
650ba3d0ae 🐛 fix types + swcrc configs 2021-10-07 18:20:03 +02:00
Flam3rboy
95bb148cfa 🐛 fix swcrc config: rewrite import -> require 2021-10-07 09:59:04 +02:00
The Arcane Brony
72af8dc719 Compiler test 2021-10-06 18:20:22 +02:00
Flam3rboy
627ba5373b ⬆️ lambert-server@1.2.11 2021-10-05 20:47:12 +02:00
Flam3rboy
c3551d9254 🐛 fix user projection 2021-10-05 19:52:42 +02:00
Flam3rboy
b9391bfac1 added autoJoin guild to config 2021-10-05 19:37:20 +02:00
Flam3rboy
1492751d58 🎨 move field error to util 2021-10-05 19:34:13 +02:00
Flam3rboy
8b56eb5fbc add User.register() method 2021-10-05 19:33:23 +02:00
Flam3rboy
1fad621347 ⬆️ update mnjsf 2021-10-05 19:32:42 +02:00
Flam3rboy
382fad0b7e 🐛 fix windows db file path 2021-10-05 19:32:29 +02:00
Flam3rboy
9fa6c3a3db 🎨 improve migration script 2021-10-05 17:00:58 +02:00
Flam3rboy
17e31a00f0 db migrate script 2021-10-04 23:14:03 +02:00
Flam3rboy
0914f424ce generalize primary column to work with mongodb object id 2021-10-04 22:43:51 +02:00
Flam3rboy
57af4224fd Merge branch 'master' of http://github.com/fosscord/fosscord-server 2021-10-04 22:06:17 +02:00
Flam3rboy
e563aa25b4 🚧 different db engines 2021-10-04 21:57:24 +02:00
uurgothat
ea900af4cd replace chalk with nanocolors 2021-10-04 22:39:50 +03:00
uurgothat
18abf9ef40 Rainbow the logs 2021-10-04 22:01:08 +03:00
Flam3rboy
b69f5baeb9 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2021-10-04 10:47:04 +02:00
Flam3rboy
73cf945525 custom user flags offset 2021-10-04 10:46:54 +02:00
Flam3rboy
48c1a15568 🐛 fix message reactions 2021-10-03 22:53:01 +02:00
Flam3rboy
5a45606411 add `right` option to route() 2021-10-03 01:55:57 +02:00
Flam3rboy
981071a645 User instance rights 2021-10-03 01:42:55 +02:00
The Arcane Brony
f3dcab6b54 Add setting to show all guilds in discovery, fix query for guild discovery 2021-10-01 22:11:56 +02:00
Flam3rboy
8e9b5d1cd2 🐛 fix disable register 2021-10-01 20:52:50 +02:00
Flam3rboy
7c9a2a240d new user flags 2021-10-01 20:08:51 +02:00
Flam3rboy
9c23374867 fix #406 2021-10-01 20:08:45 +02:00
Flam3rboy
d0f5790235 🐛 fix channel permission overwrites 2021-09-26 11:34:06 +02:00
Flam3rboy
dd611d0e7c 🐛 fix role can't set permission 2021-09-25 23:55:40 +02:00
Flam3rboy
286b4a69fd add private and public endpoint 2021-09-25 23:55:19 +02:00
Flam3rboy
e0b526e7de key value config 2021-09-25 23:24:16 +02:00
Flam3rboy
053fa4b499 🐛 fix (pre) install scripts 2021-09-23 16:03:50 +02:00
Flam3rboy
b3f8df560a unit tests expect event 2021-09-21 23:13:31 +02:00
Flam3rboy
abdce76df4 generate openapi documentation 2021-09-21 22:52:30 +02:00
Flam3rboy
022e82023d add option to disable all rate limits 2021-09-20 23:35:32 +02:00
Flam3rboy
5cec6e43d4 Merge branch 'master' into unittests 2021-09-20 21:49:42 +02:00
Flam3rboy
8af0094d8e
Merge pull request #382 from fosscord/auto-delete-relations
Auto delete relations
2021-09-20 21:27:08 +02:00
Flam3rboy
576cbf5794 🐛 fix .delete -> add onDelete: "CASCADE" 2021-09-20 20:22:56 +02:00
Flam3rboy
7809148867 finish and fix .delete() for one-to-many relations 2021-09-20 18:02:57 +02:00
Flam3rboy
269bbdfeae accept invite page 2021-09-20 17:38:16 +02:00
Flam3rboy
e22ea77625 🚧 auto delete relations 2021-09-20 17:11:22 +02:00
Flam3rboy
ffe179758e Merge branch 'master' into auto-delete-relations 2021-09-19 19:09:13 +02:00
Flam3rboy
9ae19d8e06 🚚 move file handle to utility 2021-09-19 19:05:26 +02:00
Flam3rboy
b5fb88ea8e 🎨 add orphanedRowAction and cascade onDelete to entities 2021-09-19 18:47:38 +02:00
Flam3rboy
313696d237 🎨 remove deleteMessageAttachments and move to entity 2021-09-19 18:46:22 +02:00
AlTech98
ceb770fb5b Removed ChannelService, more fixes 2021-09-18 18:36:29 +02:00
AlTech98
296375c67e Fix gateway not listening for new channels events 2021-09-18 10:44:25 +02:00
Flam3rboy
578cc8b4b6 🎨 use typescript plugin that converts to relative paths 2021-09-18 01:50:20 +02:00
AlTech98
6123f359b0 Fix icon, owner_id change and channel deletion for group DMs 2021-09-17 18:29:02 +02:00
Flam3rboy
f4db45ad9d
Update ChannelService.ts 2021-09-17 10:57:24 +02:00
AlTech98
4f87fd742f Implemented DMs and group DMs 2021-09-16 21:33:36 +02:00
AlTech98
92cbfa7595 Gateway permission check fix 2021-09-16 21:30:05 +02:00
Flam3rboy
1cd4b81917 Revert "🚧 webhook"
This reverts commit f691aa4c5a.
2021-09-16 20:49:07 +02:00
Flam3rboy
fe8d9ca740 ⬆️ fix + update dependencies 2021-09-16 20:46:22 +02:00
Flam3rboy
f691aa4c5a 🚧 webhook 2021-09-14 22:15:55 +02:00
AlTech98
072be4383f Fix attachments not being saved to db 2021-09-13 17:31:07 +02:00
Flam3rboy
9429c5c09a 🐛 fix In() query 2021-09-13 12:22:59 +02:00
Flam3rboy
dbbed7cbba 🐛 fix relationship 2021-09-13 12:22:41 +02:00
Flam3rboy
07ba78d391 🐛 fix dm #321 2021-09-13 01:11:03 +02:00
Flam3rboy
13b7b84761 🐛 fix channel events + message send 2021-09-13 00:17:56 +02:00
Flam3rboy
78c1d6a82e 🐛 fix gateway 2021-09-12 21:20:47 +02:00
Flam3rboy
d50073fc41 🎨 remove long relatives paths -> short module paths 2021-09-12 21:09:29 +02:00
Flam3rboy
528007872d
Update User.ts 2021-09-07 22:54:31 +02:00
Flam3rboy
f6f550f10a ⬆️ update test client 2021-09-04 17:59:29 +02:00
Flam3rboy
8f002d14d5 📝 added comments and updated type 2021-09-04 12:17:26 +02:00
AlTech98
aafdc5d0ee Added missing permissions and channel types 2021-09-04 11:43:09 +02:00
Flam3rboy
1175e5c718 🐛 fix ReadyEventData 2021-09-04 11:38:19 +02:00
Flam3rboy
68b3bbe579 🐛 fix patch-package 2021-09-04 11:32:11 +02:00
Flam3rboy
2e9f36b66a Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-04 11:26:47 +02:00
Flam3rboy
bf81e9c352 🐛 fix ready members payload 2021-09-04 11:25:40 +02:00
Flam3rboy
e7e3f6ef08 🐛 fix invites 2021-09-04 11:25:10 +02:00
Flam3rboy
14628d80ba 🐛 fix permissions if user is only member of guild 2021-09-04 11:24:31 +02:00
xnacly
ea29d368da readded todos 2021-09-03 21:40:02 +02:00
xnacly
3aaf4c8a57 Revert "added big todo list to Guild.ts (big chungus)"
This reverts commit 4a63e1560c.
2021-09-03 21:36:19 +02:00
xnacly
4a63e1560c added big todo list to Guild.ts (big chungus) 2021-09-03 21:33:44 +02:00
xnacly
89da09f152 added ban check to Member.addToGuild 2021-09-03 21:31:45 +02:00
xnacly
879587d62b moved Constants and Errorhandler from api to util 2021-09-03 21:29:17 +02:00
Flam3rboy
c95cd06dac Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-03 20:01:42 +02:00
Flam3rboy
3a3de120dc
Merge pull request #314 from AlTech98/master
Fix VoiceStateUpdate
2021-09-03 15:57:44 +02:00
Flam3rboy
f3e8b5e1fd improve invite generation 2021-09-03 15:48:09 +02:00
Flam3rboy
c944babc96 🐛 fix #311 2021-09-03 15:27:00 +02:00
AlTech98
ddee2c0272 Temp fix for Guild.voice_states not working 2021-09-03 14:10:34 +02:00
AlTech98
f6f87ef906 Merge remote-tracking branch 'origin/master' 2021-09-03 13:36:22 +02:00
AlTech98
f99ed31730 VoiceState fix for db update 2021-09-03 13:27:15 +02:00
Flam3rboy
2fab755e97 🐛 fix member has no roles in guild create 2021-09-03 13:10:24 +02:00
Flam3rboy
ddf4f54e81 🐛 fix client connection crash on guild create 2021-09-03 12:53:25 +02:00
Flam3rboy
628ff5973e fix #310 2021-09-03 05:17:49 +02:00
Flam3rboy
bac6d570bf simplify permissions query 2021-09-03 05:04:13 +02:00
Flam3rboy
97ec83ea1c 🐛 fix#310 2021-09-03 05:03:46 +02:00
Flam3rboy
e662c983b3 🐛 fix message sending 2021-09-03 04:04:34 +02:00
Flam3rboy
57bf4b0a2f ⬆️ update dependencies 2021-09-03 03:38:40 +02:00
Flam3rboy
3eac3a05ec 🎨 update entities 2021-09-03 03:38:19 +02:00
Flam3rboy
db46c332b3 fix #309 2021-09-03 01:15:19 +02:00
Flam3rboy
4c4bc248a5 🐛 fix entity missing an id (replace .insert with new Entity().save) 2021-09-02 21:31:44 +02:00
Flam3rboy
0326fd4aef Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-02 21:11:08 +02:00
Flam3rboy
2ba4c21f6b 🎨 reformat files 2021-09-02 20:10:25 +02:00
Flam3rboy
d29ccaf623 add user_id field to Member 2021-09-02 19:50:05 +02:00
AlTech98
9dac7ddf9e VOICE_STATE_UPDATE implementation, fix #210 2021-09-02 19:33:04 +02:00
Flam3rboy
7972f698c5 Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-09-02 00:14:34 +02:00
Flam3rboy
295159fc4a 🐛 fix entity types and projection 2021-09-01 23:34:55 +02:00
xnacly
759df843c2 removed logging of database queries 2021-09-01 22:10:14 +02:00
sudenoh
8a9385159c Added property maxWebhooks to ConfigValue and defined a default value in DefaultConfigOptions. 2021-09-01 15:43:37 +02:00
Flam3rboy
ff3b1b7093 Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm 2021-08-31 17:58:49 +02:00
Flam3rboy
f313178518 delete _ids from entities 2021-08-31 17:54:09 +02:00
AlTech98
b59cbdb081 Implemented voice apis #127 and #78 2021-08-30 21:12:13 +02:00
Flam3rboy
4abc758991 🚧 typeorm 2021-08-30 12:15:06 +02:00
Flam3rboy
954700b2d5 only local rate limit to prevent to much pressure on the database 2021-08-30 12:14:32 +02:00
Flam3rboy
d0292ef96b 🐛 convert bigint -> string 2021-08-29 17:12:46 +02:00
Flam3rboy
428c1dc2db Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm 2021-08-29 16:58:59 +02:00
Flam3rboy
ac84431cc2 fix util 2021-08-29 16:58:37 +02:00
xnacly
ca4f0e653c fixed wrong type declaration in Gateway readyEvent 2021-08-29 16:55:46 +02:00
Flam3rboy
b4b8d1d8df typeorm gateway 2021-08-29 00:30:04 +02:00
Flam3rboy
227a4e47f1 update util 2021-08-29 00:03:58 +02:00
Flam3rboy
845e77eed2 🚧 typeorm 2021-08-27 11:11:16 +02:00
Flam3rboy
db3f5c0d1b use RelationId 2021-08-26 20:48:09 +02:00
Flam3rboy
c4426920a1 🐛 fix unit tests 2021-08-26 02:07:16 +02:00
Flam3rboy
6f16392aa4 unit test 2021-08-26 00:22:26 +02:00
Flam3rboy
88305c0c0e 🐛 patch modules 2021-08-26 00:22:11 +02:00
Flam3rboy
62b6ba4002 util 2021-08-24 16:35:59 +02:00
Flam3rboy
271e439b1a util unit tests 2021-08-24 16:35:39 +02:00
Flam3rboy
b86032a001 typeorm entities 2021-08-24 16:34:46 +02:00
Flam3rboy
af36266ea8 generate schema 2021-08-23 03:52:14 +02:00
Flam3rboy
4a34892d46 🚧 typeorm 2021-08-22 12:41:21 +02:00
Flam3rboy
9fda915b37 🚧 typeorm 2021-08-21 16:47:22 +02:00
Flam3rboy
a47de8585c 🎨 update bundle build 2021-08-19 21:29:12 +02:00
Flam3rboy
4a7b933ccf 🐛 fix vanity url 2021-08-19 21:28:57 +02:00
Flam3rboy
67dfaa3644 revert 2cff55f 2021-08-18 16:10:11 +02:00
Flam3rboy
e8c22efda7 🐛 update build script 2021-08-18 13:47:31 +02:00