Move post liking from Sone to Post.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / impl / DefaultPost.java
index abef0c4..2fe4308 100644 (file)
@@ -128,6 +128,11 @@ public class DefaultPost implements Post {
        }
 
        @Override
+       public void like(Sone localSone) {
+               database.likePost(this, localSone);
+       }
+
+       @Override
        public List<PostReply> getReplies() {
                return from(database.getReplies(getId())).toSortedList(Reply.TIME_COMPARATOR);
        }