mirror of
https://codeberg.org/HPCesia/AstralHalo.git
synced 2025-04-08 17:34:27 +08:00
fix(aside): Waline recent comments api
This commit is contained in:
parent
e53aef90b9
commit
28542e1a45
@ -10,10 +10,7 @@
|
||||
async function setup() {
|
||||
const walineConfig = commentConfig.waline!;
|
||||
const commentCount = asideConfig.recentComment.count;
|
||||
const apiUrl = new URL(
|
||||
`api/comment?type=recent&count=${commentCount}`,
|
||||
walineConfig.serverURL
|
||||
).toString();
|
||||
const apiUrl = `${walineConfig.serverURL}/api/comment?type=recent&count=${commentCount}`;
|
||||
|
||||
const response = await fetch(apiUrl, {
|
||||
method: 'GET',
|
||||
|
Loading…
Reference in New Issue
Block a user