Removed unused handlePostMetadata

This commit is contained in:
Elias Nahum
2022-03-23 13:29:59 -03:00
parent ffc06bbaa3
commit 2b974f8b46

View File

@@ -87,7 +87,6 @@ const PostHandler = (superclass: any) => class extends superclass {
const emojis: CustomEmoji[] = [];
const files: FileInfo[] = [];
const metadatas: Metadata[] = [];
const postsReactions: ReactionsPerPost[] = [];
const pendingPostsToDelete: Post[] = [];
const postsInThread: Record<string, Post[]> = {};
@@ -193,12 +192,6 @@ const PostHandler = (superclass: any) => class extends superclass {
batch.push(...postFiles);
}
if (metadatas.length) {
// calls handler for postMetadata ( embeds and images )
const postMetadata = await this.handlePostMetadata({metadatas, prepareRecordsOnly: true});
batch.push(...postMetadata);
}
if (emojis.length) {
const postEmojis = await this.handleCustomEmojis({emojis, prepareRecordsOnly: true});
batch.push(...postEmojis);