mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-24 06:55:12 +00:00
allow any valid post to be featured, not just Note
This commit is contained in:
parent
d74cf9e4ff
commit
ae7b90de6c
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue