allow any valid post to be featured, not just Note

This commit is contained in:
Hazelnoot 2024-11-03 17:14:23 -05:00
parent d74cf9e4ff
commit ae7b90de6c
1 changed files with 2 additions and 2 deletions

View File

@ -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';
}