Skip to content

Commit

Permalink
Exclude rel=enclosure links from article URL detection (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsrgh authored Oct 19, 2024
1 parent 33c8fbb commit 4d95bf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ internal class AtomFeedHandler(val atom: Element) : FeedHandler {
Link.Edit.value,
Link.Self.value,
Link.Replies.value,
Link.Enclosure.value,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal sealed class AtomKeyword(val value: String) {
data object Edit : AtomKeyword("edit")
data object Self : AtomKeyword("self")
data object Replies : AtomKeyword("replies")
data object Enclosure : AtomKeyword("enclosure")
}

data object Subtitle : AtomKeyword("subtitle")
Expand Down

0 comments on commit 4d95bf6

Please sign in to comment.