444 Commits

Author SHA1 Message Date
Zane Helton
82642d0e97 Capitalize ref_type when using in embed
The GitHub API provides `ref_type` as lowercase. For consistency, this
adds a utility function and makes use of it when formatting the `create`
event from GitHub.

tag => Tag
branch => Branch
2025-06-29 03:56:01 -04:00
Zane Helton
f9cfb46e73 Fix various issues with embeds on message updates
The `postHandleMessage` function is parsing links and adding them to the
EmbedCache table if necessary. In the previous implementation, message
updates would push to the embeds unconditionally.

This commit parses links from the message and:

1. Normalizes the URLs
  - Useful for deduplicating similar URLs
2. Remove embeds with matching normalized URLs
  - Leaves all embeds except for ones with a `.url` property matching
  the updated message
  - This allows embeds to be re-ordered if the URL is moved
3. If no normalized URLs are found, remove all embeds
4. Take the deduplicated + normalized URLs and add an embed to the message and
insert into the EmbedCache table (if necessary)

This enables:

1. Embeds to be re-ordered by re-ordering links
2. Embeds to be removed by removing links

and fixes:

1. Duplicate embeds being attached to a message when edited
2025-06-28 18:30:52 +10:00
dank074
526a8da8f5
add webrtc support (#1284)
Co-authored-by: MaddyUnderStars <46743919+MaddyUnderStars@users.noreply.github.com>
2025-06-22 12:41:13 +10:00
MathMan05
5488874476 delete the null eater 2025-05-28 08:46:35 +02:00
MathMan05
af70a7f21b channel is nullable fixes 2025-05-28 08:46:35 +02:00
Puyodead1
080b2c7d38 Implement signed cdn urls 2025-05-03 12:30:22 +02:00
dank074
0ed7a8af77 add ophandler for GuildSubscriptionsBulk message 2025-04-12 05:01:37 -05:00
root
541af2045d Added better user configuration and removed extra logging 2025-03-25 11:15:14 -07:00
root
859edb9a27 Added Name Validation utility function 2025-03-24 07:26:26 -07:00
root
b03888fd62 Merge branch 'master' of https://github.com/spacebarchat/server into update_webhooks 2025-03-23 16:33:24 -07:00
root
336b2df1d7 Fixed errors in authorization for webhooks with tokens 2025-03-23 16:28:25 -07:00
Puyodead1
0fffa7f313
Merge pull request #1217 from SupremeMortal/fix/message-ack
Add missing fields to `MessageAcknowledgeSchema`
2025-03-23 14:21:43 -04:00
root
c2c34039d3 added updates to sync with djs webhook packet 2025-03-20 09:09:34 -07:00
root
39af71131a modified webhooks to match djs webhook send format 2025-03-20 08:33:16 -07:00
Puyodead1
8c7fabfe40
implement hubs routes 2025-01-07 21:12:43 -05:00
dank074
f5d6394c38 run prettier 2024-11-19 14:19:40 -06:00
Madeline
841b36112f
Merge pull request #1232 from dank074/patch/eslintConfig 2024-11-14 16:02:00 +11:00
dank074
bcbd8234e5 fix op 8 2024-11-13 19:59:57 -06:00
dank074
f499507698 turn off eslint rules causing issues 2024-11-13 19:05:54 -06:00
Emma [it/its]@Rory&
40b356ecdf Add express trustedProxy support 2024-10-30 16:28:57 +01:00
Emma [it/its]@Rory&
e0d0022675 Update sentry to latest 2024-10-30 00:32:59 +01:00
Emma [it/its]@Rory&
168758924c Update some patches, switch to node-fetch-commonjs, more updates 2024-10-28 00:32:15 +01:00
SupremeMortal
12eab21c83
Add missing fields to MessageAcknowledgeSchema
I'm not entirely sure what these fields do, but I've added them to make the client happy.
2024-09-15 17:42:23 +01:00
SupremeMortal
79eb8b6785
Add guild_template_code to GuildCreateSchema
Fixes guild creation due to additional property error.
2024-09-14 22:01:46 +01:00
TomatoCake
73ceee4ab0 Fix new app property migration disallowing NULL 2024-08-31 12:17:02 +02:00
TomatoCake
e807037145 Add more application properties 2024-08-31 11:04:18 +02:00
TomatoCake
b216c72bda Fixes for password, mfa code & email validation 2024-08-29 10:40:18 +02:00
TomatoCake
eca4f1b56c Listing & creation of Developer Portal teams 2024-08-24 07:37:34 +02:00
TomatoCake
048aae65a5 Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server into fix/guild-create-response-schema 2024-08-22 05:27:38 +02:00
Madeline
9bcc178093
Merge pull request #1178 from DEVTomatoCake/fix/1154-mysql-charset 2024-08-22 10:09:18 +10:00
Madeline
ad2dda63c9
Merge branch 'master' into fix/widget.json-channel-ordering-deleted-channels 2024-08-22 09:53:34 +10:00
Madeline
dbd93bdd7c
Merge pull request #1126 from DEVTomatoCake/feat/local-image-proxy 2024-08-19 16:38:03 +10:00
Cyber
2212a84ded fix: nickmane reset by command 2024-08-19 08:10:19 +02:00
TomatoCake
e24297b67c Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server into feat/local-image-proxy 2024-08-18 19:00:43 +02:00
TomatoCake
dfbbef3637 "engine" const value shared 2024-08-18 17:58:24 +02:00
TomatoCake
917f394cc5 Consistent widget disabled error 2024-08-18 12:05:50 +02:00
TomatoCake
63bd6d97c6 re-add CDN TODO comment 2024-08-18 10:50:45 +02:00
TomatoCake
b7f966c8c2 Prettier, remove manual deletion of msgs 2024-08-18 10:46:17 +02:00
TomatoCake
cae9d7ebed widget.json channel_ordering, fix channel deletion 2024-08-18 10:41:45 +02:00
TomatoCake
1fe85d8be8
Merge branch 'master' into fix/not_found-request-guild-members-error 2024-08-18 06:50:42 +02:00
TomatoCake
e0b6dd0581 Fix bug & handle 75k/large_threshold in opcode 8
Also fixes a bug that only allowed "guild_id" and "user_ids" to be an Array instead of also a String

Co-Authored-By: Puyodead1 <puyodead@proton.me>
2024-08-18 06:45:11 +02:00
TomatoCake
ff48d078e4 Trying to fix guild response schemas 2024-08-17 19:15:32 +02:00
TomatoCake
8e28f2539c Consistent username length requirement 2024-08-17 15:39:55 +02:00
TomatoCake
99c75d3ae4 Run prettier for @Entity() 2024-08-17 14:54:17 +02:00
TomatoCake
ed28de95a5 Add utf8mb4 "engine" property to all entitys 2024-08-17 12:33:32 +02:00
Cyber
601a9d535b regenerate openapi.json 2024-08-17 11:40:34 +02:00
Cyber
af36ea0bb5 fix: allow array in op 8 2024-08-17 11:22:37 +02:00
TomatoCake
16322a8829 Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server into feat/local-image-proxy 2024-08-15 16:00:18 +02:00
Puyodead1
dcffccb687
Update 1723644478176-webhookSourceChannel.ts 2024-08-14 11:07:18 -04:00
Puyodead1
1f29de1c7f
Merge pull request #1163 from CyberL1/fix/webhooks
fix: add webhook_id to webhook's messages
2024-08-14 10:52:34 -04:00