Merge pull request #3843 from omnivore-app/fix/newsletter-language
fix language and dir not saved for newsletters
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
import { LibraryItem, LibraryItemState } from '../entity/library_item'
|
||||
import {
|
||||
DirectionalityType,
|
||||
LibraryItem,
|
||||
LibraryItemState,
|
||||
} from '../entity/library_item'
|
||||
import { enqueueThumbnailJob } from '../utils/createTask'
|
||||
import {
|
||||
cleanUrl,
|
||||
@ -108,6 +112,9 @@ export const saveEmail = async (
|
||||
subscription: input.author,
|
||||
folder: input.folder,
|
||||
labelNames: labels.map((label) => label.name),
|
||||
itemLanguage: parseResult.parsedContent?.language,
|
||||
directionality:
|
||||
(parseResult.parsedContent?.dir as DirectionalityType) || undefined,
|
||||
},
|
||||
input.userId
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user