forked from FoundKeyGang/FoundKey
trigger side effects after updating note
This commit is contained in:
parent
ff8b9b6651
commit
796adc8599
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,7 @@ import { extractApHashtags, extractQuoteUrl, extractEmojis } from './tag.js';
|
|||
import { extractPollFromQuestion } from './question.js';
|
||||
import { extractApMentions } from './mention.js';
|
||||
import { normalizeForSearch } from '@/misc/normalize-for-search.js';
|
||||
import { sideEffects } from '@/services/note/side-effects.js';
|
||||
|
||||
export function validateNote(object: IObject): Error | null {
|
||||
if (object == null) {
|
||||
|
@ -364,4 +365,6 @@ export async function updateNote(value: IPost, actor: User, resolver: Resolver):
|
|||
url: processedContent.url,
|
||||
name: processedContent.name,
|
||||
});
|
||||
|
||||
await sideEffects(actor, await Notes.findOneByOrFail({ id: exists.id }), false, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue