mirror of https://github.com/usbharu/Hideout.git
feat: summaryが無いときは空にするように
This commit is contained in:
parent
ae166f7bce
commit
902af86c89
|
@ -95,7 +95,7 @@ class ActivityPubUserServiceImpl(
|
||||||
?: throw IllegalActivityPubObjectException("preferredUsername is null"),
|
?: throw IllegalActivityPubObjectException("preferredUsername is null"),
|
||||||
domain = url.substringAfter(":").substringBeforeLast("/"),
|
domain = url.substringAfter(":").substringBeforeLast("/"),
|
||||||
screenName = (person.name ?: person.preferredUsername) ?: throw IllegalActivityPubObjectException("preferredUsername is null"),
|
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"),
|
inbox = person.inbox ?: throw IllegalActivityPubObjectException("inbox is null"),
|
||||||
outbox = person.outbox ?: throw IllegalActivityPubObjectException("outbox is null"),
|
outbox = person.outbox ?: throw IllegalActivityPubObjectException("outbox is null"),
|
||||||
url = url
|
url = url
|
||||||
|
|
Loading…
Reference in New Issue