Skip to content

Commit

Permalink
Fix duplicate externalUrl problem (#24)
Browse files Browse the repository at this point in the history
Fixes #20 
```release-note
delete duplicate externalUrl in item's link
```
  • Loading branch information
hllshiro authored Oct 11, 2023
1 parent 78e86d7 commit 0c648ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/run/halo/feed/FeedServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private Mono<ServerResponse> postListResultToXmlServerResponse(
}
var itemBuilder = RSS2.Item.builder()
.title(post.getSpec().getTitle())
.link(feedContext.externalUrl.toString() + permalink)
.link(permalink)
.pubDate(post.getSpec().getPublishTime())
.guid(post.getStatusOrDefault().getPermalink());

Expand Down

0 comments on commit 0c648ca

Please sign in to comment.