fix: ドメイン取得方法を修正

This commit is contained in:
usbharu 2023-06-08 22:29:30 +09:00
parent e800fa1593
commit e8965f798a
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 1 additions and 1 deletions

View File

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