Fix comments feed jump error (#1491)

This commit is contained in:
沈唁 2022-08-15 07:24:43 +08:00 committed by GitHub
parent 2014be4cd3
commit 17d9dcfa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,9 @@ class Archive extends Contents
if ('/comments/' == $feedQuery || '/comments' == $feedQuery) {
/** 专为feed使用的hack */
$parameter->type = 'comments';
$this->options->feedUrl = $this->options->commentsFeedUrl;
$this->options->feedRssUrl = $this->options->commentsFeedRssUrl;
$this->options->feedAtomUrl = $this->options->commentsFeedAtomUrl;
} else {
$matched = Router::match($this->request->feed, 'pageSize=10&isFeed=1');
if ($matched instanceof Archive) {