mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-01 12:36:14 +01:00
allow Update activities for non-note posts
This commit is contained in:
parent
41536480ce
commit
bcc20d6dc4
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ export class ApInboxService {
|
||||||
} else if (getApType(object) === 'Question') {
|
} else if (getApType(object) === 'Question') {
|
||||||
await this.apQuestionService.updateQuestion(object, actor, resolver).catch(err => console.error(err));
|
await this.apQuestionService.updateQuestion(object, actor, resolver).catch(err => console.error(err));
|
||||||
return 'ok: Question updated';
|
return 'ok: Question updated';
|
||||||
} else if (getApType(object) === 'Note') {
|
} else if (isPost(object)) {
|
||||||
await this.apNoteService.updateNote(object, actor, resolver).catch(err => console.error(err));
|
await this.apNoteService.updateNote(object, actor, resolver).catch(err => console.error(err));
|
||||||
return 'ok: Note updated';
|
return 'ok: Note updated';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue