mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-11 11:43:45 +00:00
feat: summaryが無いときは空にするように
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user