fix(federation): 🚑 Match against correct type for extensions

This commit is contained in:
Jesse Wierzbinski 2024-10-24 19:13:41 +02:00
parent 456bb2c81c
commit 1a9da3ae46
No known key found for this signature in database

View file

@ -141,7 +141,7 @@ export class RequestParserHandler {
break; break;
} }
case "Like": { case "pub.versia:likes/Like": {
const like = await this.validator.LikeExtension(this.body); const like = await this.validator.LikeExtension(this.body);
if (callbacks["pub.versia:likes/Like"]) { if (callbacks["pub.versia:likes/Like"]) {
@ -150,7 +150,7 @@ export class RequestParserHandler {
break; break;
} }
case "Dislike": { case "pub.versia:likes/Dislike": {
const dislike = await this.validator.DislikeExtension( const dislike = await this.validator.DislikeExtension(
this.body, this.body,
); );
@ -191,7 +191,7 @@ export class RequestParserHandler {
break; break;
} }
case "Reaction": { case "pub.versia:reactions/Reaction": {
const reaction = await this.validator.ReactionExtension( const reaction = await this.validator.ReactionExtension(
this.body, this.body,
); );
@ -204,7 +204,7 @@ export class RequestParserHandler {
break; break;
} }
case "Share": { case "pub.versia:share/Share": {
const share = await this.validator.ShareExtension(this.body); const share = await this.validator.ShareExtension(this.body);
if (callbacks["pub.versia:share/Share"]) { if (callbacks["pub.versia:share/Share"]) {
@ -213,7 +213,7 @@ export class RequestParserHandler {
break; break;
} }
case "Vote": { case "pub.versia:polls/Vote": {
const vote = await this.validator.PollVoteExtension(this.body); const vote = await this.validator.PollVoteExtension(this.body);
if (callbacks["pub.versia:polls/Vote"]) { if (callbacks["pub.versia:polls/Vote"]) {