mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(federation): ✨ Implement inbound federation of likes and like deletion
This commit is contained in:
parent
df84572148
commit
0a31b7a8f6
6 changed files with 2230 additions and 17 deletions
2
drizzle/migrations/0034_jittery_proemial_gods.sql
Normal file
2
drizzle/migrations/0034_jittery_proemial_gods.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "Likes" ADD COLUMN "uri" text;--> statement-breakpoint
|
||||
ALTER TABLE "Likes" ADD CONSTRAINT "Likes_uri_unique" UNIQUE("uri");
|
||||
2165
drizzle/migrations/meta/0034_snapshot.json
Normal file
2165
drizzle/migrations/meta/0034_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -239,6 +239,13 @@
|
|||
"when": 1726491670160,
|
||||
"tag": "0033_panoramic_sister_grimm",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 34,
|
||||
"version": "7",
|
||||
"when": 1729789587213,
|
||||
"tag": "0034_jittery_proemial_gods",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ export const Markers = pgTable("Markers", {
|
|||
|
||||
export const Likes = pgTable("Likes", {
|
||||
id: uuid("id").default(sql`uuid_generate_v7()`).primaryKey().notNull(),
|
||||
uri: text("uri").unique(),
|
||||
likerId: uuid("likerId")
|
||||
.notNull()
|
||||
.references(() => Users.id, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue