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
Zane Helton
c0f9c22e67
Add validation to date_of_birth registration field
...
Resolves : #1020
2025-06-28 17:08:00 +10:00
Puyodead1
ac1779b480
update webrtc types package
2025-06-25 23:17:14 -04: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
f03c6209a4
send the real index
2025-05-28 08:46:35 +02:00
MathMan05
e219c1a33a
code relies on things done in a certain order
...
This makes sure that the code gets done in the order that is expected
2025-05-28 08:46:35 +02:00
MathMan05
4f6211ce50
remove missed log
2025-05-28 08:46:35 +02:00
MathMan05
04ddfadbb6
sort array to make algorithm happy
2025-05-28 08:46:35 +02:00
MathMan05
91361ea9c6
fix another stupid bug
2025-05-28 08:46:35 +02:00
MathMan05
1550ccd099
don't set possition if sent
2025-05-28 08:46:35 +02:00
MathMan05
246b493d76
remove logs
2025-05-28 08:46:35 +02: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
MathMan05
a4c50ae922
forgot to test on rebuild
2025-05-28 08:46:35 +02:00
MathMan05
a9bff7554a
fix moving channels
2025-05-28 08:46:35 +02:00
Emma [it/its]@Rory&
24292592c4
Fix nix hashes
...
Signed-off-by: Emma [it/its]@Rory& <root@rory.gay>
2025-05-03 13:15:13 +02:00
Puyodead1
6e85be3a05
Update attachments.ts
2025-05-03 12:30:22 +02:00
Puyodead1
080b2c7d38
Implement signed cdn urls
2025-05-03 12:30:22 +02:00
Madeline
1d8e081fd8
Merge pull request #1274 from dank074/patch/fix-requestGuildMembers-libraires
...
fix op 8 handler for some discord libraries
2025-04-13 08:03:31 +10:00
dank074
3bf3adfa82
fix op 8 handler for some discord libraries
2025-04-12 16:25:40 -05:00
Madeline
3ccf33950f
Merge pull request #1269 from dank074/patch/fix-missing-guildcreate-properties
2025-04-12 22:12:53 +10:00
Madeline
4169602ecb
Merge pull request #1273 from dank074/patch/fix-members-list
...
add op handler for `GUILD_SUBSCRIPTIONS_BULK` message
2025-04-12 20:15:12 +10:00
dank074
0ed7a8af77
add ophandler for GuildSubscriptionsBulk message
2025-04-12 05:01:37 -05:00
dank074
fd33d58af8
revert back to original schema, but add missing members
2025-04-11 18:39:45 -05:00
Madeline
39b19d536c
Merge pull request #1270 from dank074/patch/fix-pins
2025-04-10 09:47:17 +10:00
dank074
bb84bc83e5
add author to query in pins API
2025-04-09 18:42:56 -05:00
dank074
f41164945e
add type to make sure payload is consistent with other GUILD_CREATE event
2025-04-09 16:16:40 -05:00
dank074
64d5dcd53f
fix missing properties in GUILD_CREATE for bots
2025-04-09 15:39:17 -05:00
Emma [it/its]@Rory&
126a881f31
Prettier
2025-04-09 16:38:03 +02:00
Emma [it/its]@Rory&
2a7051bdc8
Update nix
2025-04-09 16:38:03 +02:00
Emma [it/its]@Rory&
ebc063df97
Fix dependencies
2025-04-09 16:38:03 +02:00
Puyodead1
016c0ff760
Merge pull request #1266 from MathMan05/patch-7
...
fix password reset bug
2025-04-03 16:57:48 -04:00
MathMan05
d267b08ab5
stupid fix
2025-04-03 12:53:03 -05:00
MathMan05
99cc009670
fix password reset bug
...
Not sure if this'll work, but made a pull so y'all could see the issue
2025-04-03 12:52:11 -05:00
Puyodead1
89abd2ec12
Merge pull request #1265 from thedudedies21/Update_Base_Webhooks
...
Finish Webhooks, and add config endpoint for client
2025-03-30 23:26:31 -04:00
root
d8b1a8484c
Validate Name for webhooks enforced more
2025-03-25 16:02:47 -07:00
root
52efef274b
Modified Flake.lock to not fail the check
2025-03-25 11:41:47 -07:00
root
cabc49a1ba
Added can_recover_account value to /api/policies/instance/config
2025-03-25 11:26:36 -07:00
root
541af2045d
Added better user configuration and removed extra logging
2025-03-25 11:15:14 -07:00
Munchy
7320aa4529
Merge branch 'spacebarchat:master' into master
2025-03-24 10:35:27 -04:00
Munchy
d70a00267d
Merge pull request #2 from thedudedies21/Update_Base_Webhooks
...
Update base webhooks
2025-03-24 10:35:00 -04:00
root
d0948c0e49
Updated error message for empty webhook update body
2025-03-24 07:29:56 -07:00
root
859edb9a27
Added Name Validation utility function
2025-03-24 07:26:26 -07:00
Madeline
b114cad9ad
Merge pull request #1263 from MathMan05/patch-6
...
acatually fix the embed issue
2025-03-24 15:33:09 +11:00
MathMan05
664b71f463
acatually fix the embed issue
...
This one added the line in the right spot, sorry about the previous one lol
2025-03-23 23:29:19 -05:00
Munchy
390611b6d2
Merge pull request #1 from thedudedies21/finish_base_webhooks
...
Finish base webhooks
2025-03-23 22:52:58 -04:00
root
855c858503
Prebuild for schema and openapi json files
2025-03-23 16:35:16 -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