X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FPostProvider.kt;h=37cb2a1ba5edca8f20017d03c5eb87a54fd7043a;hp=fba9daf5a1d0a7f49f1a7333ad52eb073916ec01;hb=fd32e307db87c617a4c455f592b6e649ec50ae8a;hpb=ff4bc3606b33e9796ff4fbae087b4224d02cf0d0 diff --git a/src/main/kotlin/net/pterodactylus/sone/database/PostProvider.kt b/src/main/kotlin/net/pterodactylus/sone/database/PostProvider.kt index fba9daf..37cb2a1 100644 --- a/src/main/kotlin/net/pterodactylus/sone/database/PostProvider.kt +++ b/src/main/kotlin/net/pterodactylus/sone/database/PostProvider.kt @@ -29,7 +29,7 @@ import com.google.inject.ImplementedBy @ImplementedBy(MemoryDatabase::class) interface PostProvider { - fun getPost(postId: String): Optional + fun getPost(postId: String): Post? fun getPosts(soneId: String): Collection fun getDirectedPosts(recipientId: String): Collection