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

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