107 Commits

Author SHA1 Message Date
Nobody
4a617faf02 fix(api): always add @everyone in user's roles
When you add or delete an user's role, you MUST always add "@everyone" role to the roles map
2022-03-08 18:07:28 +03:00
RealMANI
c097fce841 Fix bans list (#674)
* Fix bans list

- Bans list should load properly now

* Updated

Removed await
Removed unnecessary foreach

* Update ban.ts

await
2022-03-08 18:05:19 +03:00
Erkin Alp Güney
d5a37aadce Merge pull request #621 from fosscord/origin/dev/erkinalp/self-bans
Allow self-banning
2022-02-25 18:13:59 +03:00
Erkin Alp Güney
e73d1954b8 pretend self-bans don't exist in the views too 2022-02-04 23:36:42 +03:00
Erkin Alp Güney
2f30f5b100 ban moderator schema actually change 2022-02-04 23:08:34 +03:00
Erkin Alp Güney
add6b822a5 ban moderator schema change 2022-02-04 23:07:43 +03:00
Erkin Alp Güney
7271ca5783 some important changes 2022-02-04 22:45:53 +03:00
Erkin Alp Güney
62b7c334b1 Try to commit this one again, this time over the web 2022-02-04 10:04:41 +03:00
Erkin Alp Güney
57057c8711 remove pretense of nonexistence from main view route for now to make it compile while thinking of a fix 2022-02-04 08:49:28 +03:00
Erkin Alp Güney
3e0f568ba4 Extend the pretense of non-existence of self-bans to API view route too 2022-02-02 23:27:54 +03:00
Erkin Alp Güney
8b641d099a Better protection against self-bans 2022-02-02 23:21:38 +03:00
Erkin Alp Güney
cca854b943 Make self-bans irreversible 2022-02-02 23:14:35 +03:00
Erkin Alp Güney
986fc8a5e4 Allow self-ban of non-owners 2022-02-02 22:07:27 +03:00
Featyre
b8a14b0d18 change line 2022-01-25 00:30:16 +08:00
Featyre
cf2f04de28 Merge branch 'fosscord:master' into master 2022-01-24 14:59:34 +00:00
Featyre
858a885b0c Partnet + Discover fix and join 2022-01-24 22:59:14 +08:00
TheArcaneBrony
713b6d07b4 Add dummy endpoints to prevent client loading some settings panels indefinitely 2022-01-24 16:33:29 +03:00
Chris Chrome
aaf5df14e1 Add Role Icons (#574)
* Role Icons

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com> 
*  Cache coherency rules

Co-authored-by: MANIKILLER <manikillrorg@gmail.com>
Co-authored-by: ImAaronFR <96433859+ImAaronFR@users.noreply.github.com>
2022-01-05 13:44:14 +03:00
Kuna
ded0567d2c Comment about the hotfix 2021-12-24 19:08:24 +00:00
Thesourtimes
d55e7c5b8d (Finally) make a temporary fix for IP leak 2021-12-24 21:55:34 +03:00
Kuna
f14bbf5be3 Fix typo 2021-12-24 18:25:17 +00:00
Thesourtimes
48766b933d Fix IP leaks from bans route 2021-12-24 21:10:24 +03:00
Samuel
49aae7b16f Update index.ts 2021-11-21 21:03:13 +01:00
uurgothat
74dee34f69 Minor API stuff 2021-11-17 22:28:41 +03:00
uurgothat
d6cadb02f4 make templates configurable + authorization 2021-10-24 19:49:32 +03:00
uurgothat
537da73d38 Merge branch 'master' of https://github.com/fosscord/fosscord-server 2021-10-24 18:13:51 +03:00
developomp
99f6da9762 prettier formatted /api 2021-10-20 09:13:22 +09:00
uurgothat
7825ce6ce9 Format the file 2021-10-18 04:38:26 +03:00
uurgothat
7c724175ce external templates + fosscord draft and more configs 2021-10-18 04:36:49 +03:00
uurgothat
9cda0c2c5a remove unneeded import 2021-10-17 23:23:57 +03:00
uurgothat
652edbd895 Add discord template support 2021-10-17 23:20:46 +03:00
Flam3rboy
3999603391 sticker events 2021-10-15 18:39:28 +02:00
Flam3rboy
e1b991dfd1 Merge branch 'master' into sticker 2021-10-15 13:32:26 +02:00
Flam3rboy
b844b6b39c 🐛 fix prune 2021-10-15 00:35:18 +02:00
Flam3rboy
bc85d6ff86 🎨 reformat 2021-10-15 00:03:35 +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
ded81bcd29 stickers 2021-10-14 19:46:45 +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
2af567b522 🐛 fix #371 2021-10-11 15:21:11 +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
a61cbbe40c 🐛 convert bigint literal to object 2021-10-10 11:08:55 +02:00
Lobo Metalúrgico
5c4774a6f9 (api): fix some issues 2021-10-09 13:50:34 -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