Skip to content

Commit

Permalink
feat: Use specific Kudos Activity Title - MEED-1650 (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker authored Jul 27, 2023
1 parent 0136dfc commit e96c8dd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public boolean isEnableNotification(ExoSocialActivity activity, String username)
}
}

@Override
public String getActivityTitle(ExoSocialActivity activity) {
Kudos kudos = this.kudosService.getKudosByActivityId(Long.parseLong(activity.getId().replace("comment", "")));
return kudos == null ? activity.getTitle() : kudos.getMessage();
}

}

0 comments on commit e96c8dd

Please sign in to comment.