fix: some timelines not getting proper host

This commit is contained in:
Mar0xy 2023-09-25 16:42:21 +02:00
parent 607a3e7427
commit 4abdf6f7a6
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -1748,7 +1748,7 @@ export default class Misskey implements MegalodonInterface {
}
return this.client
.post<Array<MisskeyAPI.Entity.Note>>('/api/notes/user-list-timeline', params)
.then(res => ({ ...res, data: res.data.map(n => MisskeyAPI.Converter.note(n)) }))
.then(res => ({ ...res, data: res.data.map(n => MisskeyAPI.Converter.note(n, this.baseUrl)) }))
}
// ======================================