}
}
@SuppressWarnings("deprecation")
private void addVideoShare(Long sharerId, String sharerNickname, String sharerPortrait, Long resourceId) {
Video video = videoService.getVideoById(resourceId);
Map<String, Object> valueMap = new HashMap<String, Object>();
valueMap.put("sharerId", sharerId);
valueMap.put("videoId", video.getId());
valueMap.put("videoHtmlCode", video.getHtmlCode());
valueMap.put("thumbnail", video.getThumbnail());
valueMap.put("videoSummary", video.getSummary());
String resourceDigest = FreeMarkerUtils.getVideoDigest( valueMap);
Long shareId = shareDao.insertShare(sharerId, sharerNickname, sharerPortrait, ShareType.VIDEO, resourceId, video.getTitle(),
"<img src='" + video.getThumbnail() + "'/><br>" + video.getSummary(), video.getOwnerId(), video.getOwnerNickname(),
video.getOwnerPortrait(), null, null);
personalFeedService.addFeed(shareId, video.getTitle(), resourceDigest, sharerId, sharerNickname, sharerPortrait, sharerId,
FeedType.VIDEO_SHARE);
// return shareId;
}