mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Fix sitemap URL for accounts and channels
This commit is contained in:
parent
58daa2d97b
commit
e731f4b724
3 changed files with 5 additions and 12 deletions
|
@ -61,17 +61,13 @@ async function getSitemap (req: express.Request, res: express.Response) {
|
|||
async function getSitemapVideoChannelUrls () {
|
||||
const rows = await VideoChannelModel.listLocalsForSitemap('createdAt')
|
||||
|
||||
return rows.map(channel => ({
|
||||
url: WEBSERVER.URL + '/video-channels/' + channel.Actor.preferredUsername
|
||||
}))
|
||||
return rows.map(channel => ({ url: channel.getClientUrl() }))
|
||||
}
|
||||
|
||||
async function getSitemapAccountUrls () {
|
||||
const rows = await AccountModel.listLocalsForSitemap('createdAt')
|
||||
|
||||
return rows.map(channel => ({
|
||||
url: WEBSERVER.URL + '/accounts/' + channel.Actor.preferredUsername
|
||||
}))
|
||||
return rows.map(account => ({ url: account.getClientUrl() }))
|
||||
}
|
||||
|
||||
async function getSitemapLocalVideoUrls () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue