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