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

2602 Commits

Author SHA1 Message Date
Nobody
4294c6a875 fix(api): working ban list
We should never use await inside loops
2022-03-08 12:01:00 -03:00
RealMANI
39a3eee45d Revert "Type change"
This reverts commit de8b83f7b9.
2022-03-08 06:42:21 +01:00
RealMANI
de8b83f7b9 Type change
Changed type for column "content" to "longtext"

(you might want to get a back up from your database before updating)
2022-03-07 22:25:28 +03:00
RealMANI
fa750de6fb Check username 2022-03-06 12:18:58 +03:00
RealMANI
b51e687793 [Fix] Changing bio and accent color 2022-03-06 12:18:58 +03:00
Madeline
4ede702657 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
Madeline
68f6fe58d5 Tsnode support (#580)
* ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet.

* apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was.

* Cleaned up tsconfig.json a bit ( moved tsnode config to own file ).
Fixed breakpoints for all modules under tsnode

* Removed Microsoft Corp advert
* Remove one more Microsoft Corp. ad

Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>

* Added `tsnode` npm script

* Added `typescript-cached-transpile` package to help improve performance

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-03-06 09:18:35 +03:00
Erkin Alp Güney
57fc690457 document which field is which 2022-03-04 22:12:24 +03:00
Erkin Alp Güney
7cce144eab Initial work on public read receipts
Progress on #416
2022-03-04 22:00:59 +03:00
Xenorio
70e0bd2003 Add nan to dependencies
sqlite requires it, setup not going through without it, and manual install isn't working. does work when adding to dependencies tho.
2022-03-04 09:15:07 +03:00
Erkin Alp Güney
867b1979c4 Merge pull request #656 from fosscord/dependabot/npm_and_yarn/bundle/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /bundle
2022-02-28 07:55:42 +03:00
dependabot[bot]
2c8bdf26e4 Bump url-parse from 1.5.7 to 1.5.10 in /bundle
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:55:22 +00:00
Erkin Alp Güney
2d721ec101 Merge pull request #655 from fosscord/dependabot/npm_and_yarn/util/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /util
2022-02-28 07:55:21 +03:00
Erkin Alp Güney
910eeb04a8 Merge pull request #654 from fosscord/dependabot/npm_and_yarn/gateway/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /gateway
2022-02-28 07:55:02 +03:00
dependabot[bot]
b5872513ce Bump url-parse from 1.5.7 to 1.5.10 in /util
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:54:37 +00:00
dependabot[bot]
a737f4f2e3 Bump url-parse from 1.5.7 to 1.5.10 in /gateway
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:54:32 +00:00
Erkin Alp Güney
969d52a2bc Merge pull request #653 from fosscord/dependabot/npm_and_yarn/api/url-parse-1.5.10
Bump url-parse from 1.5.7 to 1.5.10 in /api
2022-02-28 07:53:49 +03:00
dependabot[bot]
867896fe7e 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
d5a37aadce Merge pull request #621 from fosscord/origin/dev/erkinalp/self-bans
Allow self-banning
2022-02-25 18:13:59 +03:00
RealMANI
397085878e [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]
a5af14eddb Bump url-parse from 1.5.3 to 1.5.7 in /bundle
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:56:51 +03:00
dependabot[bot]
8d16d5d30f Bump url-parse from 1.5.3 to 1.5.7 in /gateway
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:56:33 +03:00
dependabot[bot]
baa7e306df Bump url-parse from 1.5.3 to 1.5.7 in /util
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:53 +03:00
dependabot[bot]
22a7d3647b 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
46f77f8e38 changed user.premium_since to also load from the database. 2022-02-18 19:50:11 +03:00
Iratu
3352f3b75a Forgot the openapi.json change. 2022-02-18 19:50:11 +03:00
Iratu
58d58928ec 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
8ed310e0d3 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
dcf9c436ed Typo 2022-02-16 10:46:08 +03:00
RealMANI
4825cbb4a7 Mutual Friends
Added mutual friends
2022-02-16 10:46:08 +03:00
RealMANI
5a215b1af7 Mutual Guilds (#637) 2022-02-16 10:45:54 +03:00
RealMANI
4eae64b91a [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]
9b522055b9 Bump follow-redirects from 1.14.6 to 1.14.8 in /cdn (#635)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  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:04:23 +03:00
dependabot[bot]
ff30109f9b Bump vm2 from 3.9.5 to 3.9.7 in /bundle (#634)
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:19 +03:00
dependabot[bot]
a864acdeaa 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
dependabot[bot]
44c4b6eb86 Bump vm2 from 3.9.5 to 3.9.7 in /gateway (#632)
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:01:55 +03:00
dependabot[bot]
4d9ee5220e Bump vm2 from 3.9.5 to 3.9.7 in /util (#631)
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:01:41 +03:00
Erkin Alp Güney
79cc9badfc Added a few extensions 2022-02-12 19:53:40 +03:00
RealMANI
c38d147a91 Appropriate DB charset (#629)
causes bugs like turning emojis to "????"
2022-02-11 08:13:46 +03:00
Erkin Alp Güney
1ea553ccdd Manually lock node to >15 2022-02-10 23:43:49 +03:00
Erkin Alp Güney
3e0d2db0cb Add more rights (#541)
Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>
* Added the backfilling-related rights
* Added kick/ban rights
* Added the presence right
* Guild directory
* Interactions rights
2022-02-10 21:14:48 +03:00
ImAaronFR
27f6589008 [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
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
ImAaronFR
896d3672f4 [Fix] Column "groups" contains null-values (#622) 2022-02-08 08:14:07 +03:00
Erkin Alp Güney
340c0d7899 Merge branch 'master' into origin/dev/erkinalp/self-bans 2022-02-04 23:43:31 +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
dependabot[bot]
f3869cb4f6 Bump simple-get from 3.1.0 to 3.1.1 in /util (#620)
Bumps [simple-get](https://github.com/feross/simple-get) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: simple-get
  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-04 23:16:46 +03:00
Erkin Alp Güney
7944ae3242 automated security fixes applied (#619) 2022-02-04 23:14:48 +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