112 Commits

Author SHA1 Message Date
Madeline
27ec60b9fa ...and again 2022-09-02 21:19:59 +10:00
Madeline
a599e1ac57 ...try again 2022-09-02 21:17:52 +10:00
Madeline
0d43bb0afa Apply Iratu's patch for relationships
Wrap get messages in try catch because around is broken
2022-09-02 21:14:31 +10:00
Madeline
f9edbab0c6 Configurable max attachment size 2022-08-22 19:34:57 +10:00
Madeline
7ce8543510 fosscord-server/pulls/858 2022-08-21 17:35:04 +10:00
Madeline
8ec17b74cb Fix before and after queries doing gt and lt comparisions incorrectly 2022-08-02 19:25:56 +10:00
Madeline
268699823d Fix messages?after=snowflake calling new Snowflake, which is not allwoed 2022-08-02 19:10:34 +10:00
Madeline
96c8c854ca Attempt to fix message ID bug 2022-07-22 22:27:48 +10:00
Madeline
18b25fc21c Revert ascending order thing 2022-07-22 22:22:34 +10:00
Madeline
a6a2ba22fe Get messages by ascending order 2022-07-22 22:11:02 +10:00
Madeline
d5965f05d3 await the dm channel handler 2022-07-22 21:00:00 +10:00
Madeline
b19d9fe294 Attempt to fix headers being set after send to client in send message 2022-07-17 15:56:58 +10:00
Madeline
e314eb7604 /channel/:id/messages/:id/ack responds with { token: null } on discord.com 2022-07-13 20:30:13 +10:00
Madeline
f3274419a1 Removed unused import
tab autocomplete really loves doing this to me
2022-07-09 14:58:50 +10:00
Madeline
402d9ecc7b Allow multiple attachments in messages 2022-07-09 14:15:15 +10:00
Erkin Alp Güney
1653f2c505 Update index.ts 2022-05-15 17:43:30 +03:00
Erkin Alp Güney
d55828a952 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2022-05-15 09:12:11 +03:00
Erkin Alp Güney
c5709acb9e Update bulk-delete.ts 2022-05-15 00:23:17 +03:00
Erkin Alp Güney
0101e62075 Update purge.ts 2022-05-15 00:16:50 +03:00
Erkin Alp Güney
9711f95072 messages before/after soundness check 2022-04-30 07:44:44 +03:00
Erkin Alp Güney
6950166ee8 patch for missing router schema, and also add purge route self-deletion checks 2022-04-30 00:39:44 +03:00
Erkin Alp Güney
cec8cea01a introduce the purge endpoint
closes #281
2022-04-28 22:31:54 +03:00
Erkin Alp Güney
f09daaa3de needs to be async 2022-04-28 21:38:39 +03:00
Erkin Alp Güney
6a1e2edd8d use return codes to allow for automation 2022-04-24 11:40:24 +03:00
Erkin Alp Güney
122abacf17 Backfilling privilege does not imply right to post messages 2022-04-24 09:23:52 +03:00
Madeline
2e84840213 While backfilling, message ids must now be valid snowflakes, cannot be in the future, and cannot overwrite existing messages 2022-04-24 16:09:38 +10:00
Erkin Alp Güney
ccf4386d70 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2022-04-23 10:57:49 +03:00
Erkin Alp Güney
b81017bc60 backfilling — first steps 2022-04-23 10:56:47 +03:00
Madeline
2846e970b4 Can no longer send messages to channel types that do not support it ( categories, voice etc ) 2022-04-23 01:28:03 +10:00
Erkin Alp Güney
e7461aba3c Merge branch 'master' of https://github.com/fosscord/fosscord-server 2022-04-18 21:22:51 +03:00
Erkin Alp Güney
e10f203c0b get single message && message rights enforcement 2022-04-18 21:21:40 +03:00
Erkin Alp Güney
d58f567723 Unified ghost instead of separate ghosts 2022-04-18 19:17:43 +03:00
Erkin Alp Güney
e2b27a8d2c reactions rights enforcement 2022-04-17 21:15:58 +03:00
binsky
969c99173a fix invite right enforcement 2022-04-09 08:30:29 +03:00
Erkin Alp Güney
4c3eec0b1a correct right name 2022-04-08 17:30:55 +03:00
Erkin Alp Güney
a8c57a878d invite right enforced 2022-04-08 11:34:01 +03:00
Erkin Alp Güney
6482b112c4 fix the build mistakes from yesternight 2022-04-08 10:26:20 +03:00
Erkin Alp Güney
a8bd754d0c Update index.ts 2022-04-08 00:00:22 +03:00
ImAaronFR
385bdfdff4 [Fix] Client bug (#623)
If you don't delete this property for some reasons after you send a message in a guild, your roles will be removed (client sided) for everyone, this fixes it.
2022-02-09 09:22:27 +03:00
Madeline
b512fa49b0 Remove nulled properties from GET /channels/#id/messages for improved compatibility with some client ( discord.js ) 2022-02-04 19:59:13 +11:00
TheArcaneBrony
713b6d07b4 Add dummy endpoints to prevent client loading some settings panels indefinitely 2022-01-24 16:33:29 +03:00
Madeline
d6f5a08cb5 Add unhandled channel types to IsTextChannel method 2022-01-23 23:29:14 +03:00
Madeline
e275d2c77d Message fixes | Character limits and embed fixes (#581)
* Adds message character limits (#503)
* Fixed message `embeds` being ignored for `embed`
* Update Message.ts

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-11 17:27:55 +03:00
The Arcane Brony
a9a92ff2cb Add Sentry, fix compile errors 2021-12-22 18:43:39 +01:00
developomp
99f6da9762 prettier formatted /api 2021-10-20 09:13:22 +09:00
Flam3rboy
2a85285e63 🐛 fix bulk delete 2021-10-18 22:55:36 +02:00
Flam3rboy
d504cdf0ee message performance 2021-10-18 18:34:48 +02:00
Samuel
508fbce94e fix default cdn endpoint for message attachments 2021-10-18 11:02:08 +02:00
Flam3rboy
78778c8eee 🐛 fix typing 2021-10-17 01:53:29 +02:00
Flam3rboy
f272a11230 🐛 fix message sending 2021-10-15 18:55:26 +02:00