fix: ノートの重複判定を修正

This commit is contained in:
2023-08-14 20:45:48 +09:00
parent 8e7c4956e1
commit bb46c434f0
@@ -119,8 +119,12 @@ class APNoteServiceImpl(
targetActor: String?,
url: String
): Note {
if (note.id == null) {
return internalNote(note, targetActor, url)
}
val findByApId = try {
postQueryService.findByApId(url)
postQueryService.findByApId(note.id!!)
} catch (_: NoSuchElementException) {
return internalNote(note, targetActor, url)
} catch (_: IllegalArgumentException) {