feat: summaryが無いときは空にするように

This commit is contained in:
usbharu 2023-04-21 22:19:00 +09:00
parent ae166f7bce
commit 902af86c89
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class ActivityPubUserServiceImpl(
?: throw IllegalActivityPubObjectException("preferredUsername is null"),
domain = url.substringAfter(":").substringBeforeLast("/"),
screenName = (person.name ?: person.preferredUsername) ?: throw IllegalActivityPubObjectException("preferredUsername is null"),
description = person.summary ?: throw IllegalActivityPubObjectException("summary is null"),
description = person.summary ?: "",
inbox = person.inbox ?: throw IllegalActivityPubObjectException("inbox is null"),
outbox = person.outbox ?: throw IllegalActivityPubObjectException("outbox is null"),
url = url