mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-17 11:08:07 +00:00
feat: acceptを追加
This commit is contained in:
@@ -33,7 +33,9 @@ class WebFingerService(
|
||||
|
||||
override suspend fun fetchUserModel(url: String): Person? {
|
||||
return try {
|
||||
httpClient.get(url).body<Person>()
|
||||
httpClient.get(url) {
|
||||
header("Accept", "application/activity+json")
|
||||
}.body<Person>()
|
||||
} catch (e: ResponseException) {
|
||||
if (e.response.status == HttpStatusCode.NotFound) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user