feat(federation): Implement inbound federation of likes and like deletion

This commit is contained in:
Jesse Wierzbinski 2024-10-24 19:08:28 +02:00
parent df84572148
commit 0a31b7a8f6
No known key found for this signature in database
6 changed files with 2230 additions and 17 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE "Likes" ADD COLUMN "uri" text;--> statement-breakpoint
ALTER TABLE "Likes" ADD CONSTRAINT "Likes_uri_unique" UNIQUE("uri");

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

@ -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, {