121 Commits

Author SHA1 Message Date
LachlanCourt
a72b8a0bd9 Create role subdirectory and add GET api route 2022-07-04 22:22:43 +03:00
Madeline
446ff62bfe Fix compile errors in latest 2022-06-26 23:33:51 +10:00
Erkin Alp Güney
d94d94aa3c fix the wrong name 2022-06-26 14:42:06 +03:00
Erkin Alp Güney
4a6ed7ec1f self-leave logic 2022-06-26 14:41:06 +03:00
Erkin Alp Güney
3343df5c23 Update prune.ts 2022-04-28 21:51:35 +03:00
Erkin Alp Güney
643e453466 remove misleading todo note 2022-04-16 00:15:09 +03:00
binsky
edc5426369 fix MANAGE_GUILDS; rename getRight to getRights 2022-04-09 08:30:29 +03:00
Erkin Alp Güney
14bb6972d3 rights enforcement in guild create 2022-04-08 11:29:04 +03:00
Erkin Alp Güney
327100afb9 MANAGE_GUILDS 2022-04-08 11:23:09 +03:00
Nobody
134d746ebf fix(api): add vanity urls creation/update (#665)
* fix(api): add vanity urls creation/update

* refactor(api): multiple vanity urls
Old vanty urls will not be updated, instead a new one will be created.
* feat(api): add ALIASABLE_NAMES feature

Reference: https://github.com/fosscord/fosscord-server/issues/407
2022-03-09 17:35:19 +03:00
Nobody
b9be054241 Merge branch 'master' into fix/ban-list 2022-03-08 12:15:38 -03:00
Nobody
0bb00e044b fix(api): don't send @everyone in route response
The response of `PATCH /guilds/{guild.id}/members/{user.id}` should not include "@everyone" role
2022-03-08 18:07:28 +03:00
Nobody
b20746bd17 fix(api): prevent @everyone role duplication
If user already has @everyone role, then don't push it to the array
2022-03-08 18:07:28 +03:00
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
Nobody
4294c6a875 fix(api): working ban list
We should never use await inside loops
2022-03-08 12:01:00 -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