mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3843 from omnivore-app/fix/newsletter-language
fix language and dir not saved for newsletters
This commit is contained in:
commit
201a5817ef
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue