Return ID of the post from post reply.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / impl / PostReplyImpl.java
index 361a2e9..fa6629e 100644 (file)
@@ -53,11 +53,19 @@ public class PostReplyImpl extends ReplyImpl<PostReply> implements PostReply {
        //
 
        /**
+        * {@inheritDocs}
+        */
+       @Override
+       public String getPostId() {
+               return postId;
+       }
+
+       /**
         * {@inheritDoc}
         */
        @Override
        public Post getPost() {
-               return postProvider.getPost(postId);
+               return postProvider.getPost(postId).get();
        }
 
        /**