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

755 Commits

Author SHA1 Message Date
Nobody
ba3e87e73c fix(api): working replies in dm channels 2022-03-09 17:09:36 +03:00
Nobody
c1b22dc541
Merge branch 'master' into fix/ban-list 2022-03-08 12:15:38 -03:00
RealMANI
4a1e25dda6 Temporary notes fix
Temporary fix for getting stuck on loading user note.
//TODO
2022-03-08 18:12:34 +03:00
Nobody
9f21567d9e fix(api): working invisible status type 2022-03-08 18:08:32 +03:00
Nobody
a3091e9d1a 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
d46fe195d0 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
8b5a917186 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
110d58b5d2
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
cf16bc6cc7 fix(api): working ban list
We should never use await inside loops
2022-03-08 12:01:00 -03:00
RealMANI
e25db746c1 Check username 2022-03-06 12:18:58 +03:00
RealMANI
ec52a370da [Fix] Changing bio and accent color 2022-03-06 12:18:58 +03:00
Madeline
4b1f30ba43 Fixed npm run tsnode throwing error about ES modules for node-fetch. Probably was api package.json still included node-fetch 3, but bundle still had v2 2022-03-06 10:52:19 +03:00
dependabot[bot]
774cc3ba1f
Bump url-parse from 1.5.7 to 1.5.10 in /api
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-28 04:27:08 +00:00
Erkin Alp Güney
77c6dd5b65
Merge pull request #621 from fosscord/origin/dev/erkinalp/self-bans
Allow self-banning
2022-02-25 18:13:59 +03:00
RealMANI
d2b6107e00 [Fix] Profile & banner uploading
Related to this issue https://github.com/fosscord/fosscord-server/pull/639#issuecomment-1046140968
2022-02-20 08:10:50 +03:00
dependabot[bot]
edffb07865 Bump url-parse from 1.5.3 to 1.5.7 in /api
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-19 10:55:34 +03:00
Iratu
903ce169a1 changed user.premium_since to also load from the database. 2022-02-18 19:50:11 +03:00
Iratu
a1447b98f5 Forgot the openapi.json change. 2022-02-18 19:50:11 +03:00
Iratu
63fe1ef3b2 Fix for Premium Since to show the 'Guild Boost' and store it correctly in the database 2022-02-18 19:50:11 +03:00
Erkin Alp Güney
c9fdfe196d
Merge pull request #608 from Featyre/master
Branding updates + Fixed Discovery and custom status + Dev portal
2022-02-16 21:16:20 +03:00
RealMANI
0f77e9c5fc Typo 2022-02-16 10:46:08 +03:00
RealMANI
b46fd104aa Mutual Friends
Added mutual friends
2022-02-16 10:46:08 +03:00
RealMANI
76d5d83dc7
Mutual Guilds (#637) 2022-02-16 10:45:54 +03:00
RealMANI
e8b24b3684
[Fix] Invisible space username (#639)
You can send only spaces to the server and have a invisible username, this way you can remove the spaces and check and if it wasn't null after you know it's not just spaces
2022-02-16 10:45:37 +03:00
dependabot[bot]
39ea06b906
Bump vm2 from 3.9.5 to 3.9.7 in /api (#633)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.7.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 08:02:08 +03:00
Erkin Alp Güney
b3c4b5ded9
Manually lock node to >15 2022-02-10 23:43:49 +03:00
ImAaronFR
45d84446bc
[Fix] Trying to remove a null element (#625)
Fix for: Uncaught TypeError: document.querySelector(...) is null
2022-02-10 07:56:48 +03:00
ImAaronFR
760cdeda92
[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
Erkin Alp Güney
9940f342f9
Merge branch 'master' into origin/dev/erkinalp/self-bans 2022-02-04 23:43:31 +03:00
Erkin Alp Güney
6a67f50c39 pretend self-bans don't exist in the views too 2022-02-04 23:36:42 +03:00
Erkin Alp Güney
fd5c5d5d51 ban moderator schema actually change 2022-02-04 23:08:34 +03:00
Erkin Alp Güney
1fa1c759e5 ban moderator schema change 2022-02-04 23:07:43 +03:00
Erkin Alp Güney
006570f9f3 some important changes 2022-02-04 22:45:53 +03:00
Madeline
1d86692af0
Remove nulled properties from GET /channels/#id/messages for improved compatibility with some client ( discord.js ) 2022-02-04 19:59:13 +11:00
Erkin Alp Güney
71e229dffc
Try to commit this one again, this time over the web 2022-02-04 10:04:41 +03:00
Erkin Alp Güney
9c941284ea
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
3dd20d86f1
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
f9c371f01f
Better protection against self-bans 2022-02-02 23:21:38 +03:00
Erkin Alp Güney
89822c625b
Make self-bans irreversible 2022-02-02 23:14:35 +03:00
Erkin Alp Güney
af677c2342
Allow self-ban of non-owners 2022-02-02 22:07:27 +03:00
Featyre
7b3531cb90 Return none for dev portal + todo for categories 2022-02-02 02:09:57 +08:00
Featyre
862c80b343
Merge branch 'fosscord:master' into master 2022-02-01 16:54:50 +00:00
ImAaronFR
2d18444b6e
Update index.html
Compatible client version with Role Icons
2022-01-31 03:04:39 +03:30
Featyre
b01a26cdce Dev portal + categories load db 2022-01-26 08:58:36 +08:00
Featyre
5c525c1eef change line 2022-01-25 00:30:16 +08:00
Featyre
1c0cc35101
Merge branch 'fosscord:master' into master 2022-01-24 14:59:34 +00:00
Featyre
cc492f07dc Partnet + Discover fix and join 2022-01-24 22:59:14 +08:00
TheArcaneBrony
cc1d7f9cc0 Add dummy endpoints to prevent client loading some settings panels indefinitely 2022-01-24 16:33:29 +03:00
Featyre
5e868d431b Prep for Category db work 2022-01-24 11:27:12 +00:00
Featyre
f3981b586e
Merge branch 'fosscord:master' into master 2022-01-24 09:02:52 +00:00
Featyre
e3f20f849d category + discovery + custom status fix, new config 2022-01-24 07:21:48 +00:00
Madeline
e567755ab6
revert dependabot PRs that update node-fetch to v3 2022-01-24 17:06:31 +11:00
Featyre
ba70cf4b97
Merge branch 'fosscord:master' into master 2022-01-24 05:25:22 +00:00
Madeline
14a4321c0f Add unhandled channel types to IsTextChannel method 2022-01-23 23:29:14 +03:00
Featyre
caa951b318
Merge branch 'fosscord:master' into master 2022-01-23 15:57:00 +00:00
Featyre
a5e06cd021 Partial integration of categories and discovery 2022-01-23 23:55:43 +08:00
Erkin Alp Güney
0736f99e45
Closed-join guilds
Resolves #537
Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-23 17:46:04 +03:00
dependabot[bot]
6fd0901fad Bump node-fetch from 2.6.6 to 2.6.7 in /api/scripts/stresstest
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-23 07:46:43 +03:00
dependabot[bot]
f094c076f3 Bump node-fetch from 2.6.2 to 3.1.1 in /api
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.2 to 3.1.1.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.2...v3.1.1)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-23 07:41:40 +03:00
Featyre
4450216750 Branding updates 2022-01-22 22:39:27 +03:00
Featyre
12edecb723 Branding updates 2022-01-23 02:03:14 +08:00
Chris Chrome
37bf9b05d6
Revert previous commit 2022-01-16 23:51:04 -05:00
Erkin Alp Güney
4c33c50a29
Further debranding of premium tiers 2022-01-14 23:03:57 +03:00
Madeline
853789f0ac Fix typo in commit 277b28c 2022-01-13 10:49:26 +03:00
Erkin Alp Güney
277b28c000
Fix the feature check 2022-01-12 16:04:34 +03:00
Erkin Alp Güney
4082ed2784
Add cross channel replies
Resolves #533
2022-01-12 09:58:22 +03:00
ced777ric
2fbcf4b5bf fix the message endpoint always returning Empty message error
(cherry picked from commit 8b8344e860920f3c3b911dfde1a7a078fef43c9b)
2022-01-11 18:42:25 +01:00
Madeline
a30a0df246
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
Thesourtimes
2449d0b859 Correct the invite response 2022-01-06 22:14:00 +03:00
Chris Chrome
26bea41048
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
Thesourtimes
7d6fd4c88f Update documents 2022-01-04 20:51:04 +03:00
Thesourtimes
5489cabc9d Fix schemas handler 2022-01-01 20:59:08 +03:00
Thesourtimes
ff93a9178d Organize @fosscord/api utils in directories 2022-01-01 20:04:30 +03:00
unknownPerson115
24218eae11 Updated stop.ts
now using bitwise operators and dividing the `rights` value so you can have other rights whilst having the `OPERATOR` right

for example: `3` is `1` and `2` combined

NOTE: a potential issue has been uncovered while testing; if you have more than 1 thread the server will only stop 1 thread and the rest of the server will continue to run
2021-12-29 17:42:26 +03:00
unknownPerson115
d842950b80 Updated stop.ts
updated stop.ts so it checks for user rights instead of the SYSTEM flag which can possibly cause some unnecessary complications when it comes to instance management

*also has been tested with multiple tokens to be sure that this does NOT permit normal users to POST to the /stop API route
**NOTE**: instance owners will have to re-run `npm run setup` for these changes to take effect
2021-12-29 17:42:26 +03:00
Chris Chrome
565f3b9e5f
Merge pull request #553 from TheArcaneBrony/master
Remove fs-extras, add Sentry support, fix compile errors, fix some typos
2021-12-26 13:38:25 -05:00
The Arcane Brony
4518cacde1 Add env name in sentry, set default sentry endpoint 2021-12-26 18:19:31 +01:00
The Arcane Brony
78221fbdeb Restore package locks 2021-12-26 16:41:22 +01:00
unknownPerson115
bb695969fe
Update api/src/routes/stop.ts
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2021-12-25 15:33:55 -06:00
unknownPerson115
76c41d905a
Create stop.ts (for /stop API route)
patched up the route and polished it

note: THIS API IS ONLY FOR DEVELOPMENT PURPOSES
2021-12-25 21:09:46 +00:00
The Arcane Brony
9909e5a174 Replace nanocolors with picocolors 2021-12-25 12:09:48 +01:00
Kuna
20d20bcd66
Comment about the hotfix 2021-12-24 19:08:24 +00:00
Thesourtimes
efd1c56611 (Finally) make a temporary fix for IP leak 2021-12-24 21:55:34 +03:00
Kuna
f51f34dedd
Fix typo 2021-12-24 18:25:17 +00:00
Thesourtimes
9ee4729ee0 Fix IP leaks from bans route 2021-12-24 21:10:24 +03:00
The Arcane Brony
252051b95a Add Sentry, fix compile errors 2021-12-22 18:43:39 +01:00
The Arcane Brony
d0cd5b7040 Repo cleanup, remove fs-extras 2021-12-21 11:56:33 +01:00
Kuna
e08212f87d
Update downloads.ts 2021-12-18 16:21:05 +00:00
Thesourtimes
0da570dedc General work on API 2021-12-18 19:17:04 +03:00
Thesourtimes
0d16ae1da4 Add the new discovery route 2021-12-15 05:46:10 +03:00
Thesourtimes
87f7c9b7a3 Make the test client togglable 2021-12-15 05:41:21 +03:00
TimSchweiz
8a976e2bcc Stresstest Script 2021-12-09 17:35:51 +01:00
Kuna
349229c1b9
Update index.ts 2021-12-07 19:40:09 +03:00
Kuna
9e45895031
Update index.ts 2021-12-07 19:39:03 +03:00
Thesourtimes
62d992893c Fix previous commit 2021-12-07 17:35:55 +03:00
Thesourtimes
6e48883354 Minor API work 2021-12-05 21:53:58 +03:00
Thesourtimes
9b9e6cfa9d Make INTERNAL_EMPLOYEE_ONLY functional 2021-12-05 21:53:23 +03:00
Samuel
f0edc2f05e
Merge pull request #530 from erkinalp/patch-3 2021-11-30 20:12:54 +01:00
Erkin Alp Güney
dabe8f501c Eventually fixed all the errors in the RandomInviteID 2021-11-30 22:04:48 +03:00
Erkin Alp Güney
a4fdaf0352 fix the bigint asintn 2021-11-30 21:53:50 +03:00
Samuel
69fff73757
Merge pull request #527 from erkinalp/patch-3 2021-11-30 19:51:59 +01:00
Thesourtimes
afc9e6c184 Add a new test-client related endpoint 2021-11-30 21:43:18 +03:00
Erkin Alp Güney
da53ff6c9e
Fix assignment incompatibility 2021-11-30 21:30:01 +03:00
Erkin Alp Güney
9b67dabea8
Fix the type errors
Forgot that you cannot mix and match bigint and float
2021-11-30 20:33:29 +03:00
Samuel
7b2444fff1
Merge pull request #519 from erkinalp/master
Snowflake-based invite generation
2021-11-29 20:41:59 +01:00
Samuel
83669961fc
Merge pull request #518 from Xenorio/master
Fix plugins folder not being found
2021-11-29 20:41:20 +01:00
Samuel
b304e9f552
Merge pull request #523 from fosscord/translation 2021-11-29 08:51:09 +01:00
Samuel
31f714ae63 New translations common.json (Russian) 2021-11-29 08:29:57 +01:00
Samuel
f7faa1eaac New translations auth.json (Russian) 2021-11-29 08:29:56 +01:00
Erkin Alp Güney
6d2ae89a3b snowflake-based invite generation 2021-11-28 11:25:41 +03:00
Xenorio
9073524d48 Fix plugins folder not being found
This adds a .gitkeep file so
the plugins folder is being delivered when cloning
2021-11-28 07:50:49 +01:00
Samuel
af1a23400c
Merge pull request #491 from TheArcaneBrony/master
Add plugin & css support, add styling to differentiate from discord.com
2021-11-21 21:04:22 +01:00
Samuel
b47a812ac7
Update index.ts 2021-11-21 21:03:13 +01:00
Thesourtimes
17684a14fd Fix the minor issues on route 2021-11-18 22:15:05 +03:00
uurgothat
bdc447e448 Minor API stuff 2021-11-17 22:28:41 +03:00
uurgothat
39aebb2cfc Add instance route 2021-11-17 22:28:22 +03:00
The Arcane Brony
2c6d37fad0 Add user.css 2021-11-14 16:30:12 +01:00
The Arcane Brony
a61bba7e27 Inline plugin support 2021-11-11 22:26:49 +01:00
The Arcane Brony
ae6bfb54a4 Fix autoregister, add inline plugins 2021-11-11 22:25:46 +01:00
The Arcane Brony
8df80f659a Attempt to fix auto register 2021-11-11 22:25:46 +01:00
The Arcane Brony
ed133380fb Add plugin & css support, add styling to differentiate from discord.com 2021-11-11 22:24:03 +01:00
Samuel
ecb1f0f748
Merge pull request #496 from fosscord/translation
New Crowdin updates
2021-11-11 10:54:38 +01:00
Thesourtimes
31ed39e064 move checLocale and other js tp checkLocale 2021-11-11 11:49:56 +03:00
Thesourtimes
8d63a61848 Put autoregister scripts on a seperate asset file 2021-11-11 11:29:08 +03:00
Thesourtimes
ac1d7fbbaf API versions 6 & 7 with minor logging additions 2021-11-10 19:44:11 +03:00
Kuna
6e9ab52d82
Update Authentication.ts 2021-10-24 20:30:10 +03:00
uurgothat
f45d1d579d make templates configurable + authorization 2021-10-24 19:49:32 +03:00
Samuel
8e4277e138 New translations auth.json (Serbo-Croatian) 2021-10-24 12:42:46 -04:00
Samuel
63520875f1 New translations common.json (Serbo-Croatian) 2021-10-24 12:42:45 -04:00
Samuel
fdb71f81a1 New translations common.json (Vietnamese) 2021-10-24 12:42:30 -04:00
Samuel
3ca7ff25f5 New translations common.json (Ukrainian) 2021-10-24 12:42:28 -04:00
Samuel
2c71979133 New translations common.json (Turkish) 2021-10-24 12:42:27 -04:00
Samuel
ae9e394e2f New translations common.json (Swedish) 2021-10-24 12:42:26 -04:00
Samuel
70aa9f4a71 New translations common.json (Croatian) 2021-10-24 12:42:24 -04:00
Samuel
33e053ab60 New translations common.json (Slovak) 2021-10-24 12:42:24 -04:00
Samuel
931f7613f2 New translations common.json (Norwegian) 2021-10-24 12:42:21 -04:00
Samuel
dba56c34d0 New translations common.json (Dutch) 2021-10-24 12:42:21 -04:00
Samuel
7df3d5516b New translations common.json (Lithuanian) 2021-10-24 12:42:20 -04:00
Samuel
776bd2b257 New translations common.json (Korean) 2021-10-24 12:42:18 -04:00
Samuel
2147f00e59 New translations common.json (Japanese) 2021-10-24 12:42:18 -04:00
Samuel
07099e1f91 New translations common.json (Italian) 2021-10-24 12:42:16 -04:00
Samuel
4cdf50c583 New translations common.json (Hungarian) 2021-10-24 12:42:16 -04:00
Samuel
fbe5a56b83 New translations common.json (Russian) 2021-10-24 12:42:14 -04:00
Samuel
ed60e5f55d New translations common.json (Finnish) 2021-10-24 12:42:13 -04:00
Samuel
a66c9d7edb New translations common.json (Hindi) 2021-10-24 12:42:12 -04:00
Samuel
a787d1889f New translations common.json (Esperanto) 2021-10-24 12:42:05 -04:00
Samuel
bfc041e15f New translations common.json (Greek) 2021-10-24 12:41:57 -04:00
Samuel
744953db92 New translations common.json (German) 2021-10-24 12:41:56 -04:00
Samuel
010483106b New translations auth.json (Russian) 2021-10-24 12:41:56 -04:00
Samuel
b584344ab6 New translations auth.json (Norwegian) 2021-10-24 12:41:53 -04:00