allow any valid post to be featured, not just Note
This commit is contained in:
parent
d74cf9e4ff
commit
ae7b90de6c
|
@ -272,7 +272,7 @@ export class ApInboxService {
|
||||||
|
|
||||||
if (activity.target === actor.featured) {
|
if (activity.target === actor.featured) {
|
||||||
const activityObject = fromTuple(activity.object);
|
const activityObject = fromTuple(activity.object);
|
||||||
if (isApObject(activityObject) && !isNote(activityObject)) {
|
if (isApObject(activityObject) && !isPost(activityObject)) {
|
||||||
return 'unsupported featured object type';
|
return 'unsupported featured object type';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,7 +646,7 @@ export class ApInboxService {
|
||||||
|
|
||||||
if (activity.target === actor.featured) {
|
if (activity.target === actor.featured) {
|
||||||
const activityObject = fromTuple(activity.object);
|
const activityObject = fromTuple(activity.object);
|
||||||
if (isApObject(activityObject) && !isNote(activityObject)) {
|
if (isApObject(activityObject) && !isPost(activityObject)) {
|
||||||
return 'unsupported featured object type';
|
return 'unsupported featured object type';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue