From ae7b90de6cc86c42a1231a325cd55ef15e3d5b00 Mon Sep 17 00:00:00 2001
From: Hazelnoot <acomputerdog@gmail.com>
Date: Sun, 3 Nov 2024 17:14:23 -0500
Subject: [PATCH] allow any valid post to be featured, not just Note

---
 packages/backend/src/core/activitypub/ApInboxService.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/backend/src/core/activitypub/ApInboxService.ts b/packages/backend/src/core/activitypub/ApInboxService.ts
index 4e4cdc09b5..f90dec7a09 100644
--- a/packages/backend/src/core/activitypub/ApInboxService.ts
+++ b/packages/backend/src/core/activitypub/ApInboxService.ts
@@ -272,7 +272,7 @@ export class ApInboxService {
 
 		if (activity.target === actor.featured) {
 			const activityObject = fromTuple(activity.object);
-			if (isApObject(activityObject) && !isNote(activityObject)) {
+			if (isApObject(activityObject) && !isPost(activityObject)) {
 				return 'unsupported featured object type';
 			}
 
@@ -646,7 +646,7 @@ export class ApInboxService {
 
 		if (activity.target === actor.featured) {
 			const activityObject = fromTuple(activity.object);
-			if (isApObject(activityObject) && !isNote(activityObject)) {
+			if (isApObject(activityObject) && !isPost(activityObject)) {
 				return 'unsupported featured object type';
 			}