mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-15 14:05:00 +00:00
fix: ドメイン取得方法を修正
This commit is contained in:
+1
-1
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user