File tree 1 file changed +2
-2
lines changed
app/src/main/kotlin/feeds
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ class FeedsModel(
177
177
text = feed.title,
178
178
outlines = emptyList(),
179
179
xmlUrl = feed.links.first { it.rel is AtomLinkRel .Self }.href.toString(),
180
- htmlUrl = feed.links.first { it.rel is AtomLinkRel .Alternate }.href.toString(),
180
+ htmlUrl = feed.links.firstOrNull { it.rel is AtomLinkRel .Alternate }? .href? .toString(),
181
181
extOpenEntriesInBrowser = feed.ext_open_entries_in_browser,
182
182
extShowPreviewImages = feed.ext_show_preview_images,
183
183
extBlockedWords = feed.ext_blocked_words,
@@ -189,7 +189,7 @@ class FeedsModel(
189
189
outlines = outlines,
190
190
)
191
191
192
- withContext(Dispatchers .Default ) {
192
+ withContext(Dispatchers .IO ) {
193
193
out .write(opmlDocument.toXmlDocument().toPrettyString().toByteArray())
194
194
}
195
195
}
You can’t perform that action at this time.
0 commit comments