@Override public void onTweetRemove(Tweet tweet) throws FunctionalException { if (!tweet.isNotification()) { User currentUser = userService.getCurrentUser(); this.userLineRepository.removeTweetFromUserline(currentUser, tweet.getTweetId()); } }
@Override public void onTweetPost(Tweet tweet) { User currentUser = userService.getCurrentUser(); userLineRepository.addTweetToUserline(currentUser, tweet.getTweetId()); }