return builder.comment2Content(comment);
}
private Content status2Content(StatusMessage sm) {
ArrayList<String> values;
Content content = new Content();
content.setProvider(getFbContentProvider().getId());
content.setType(ContentTypeEnum.STATUS.name());
content.setContentUrl(URLUtils.makeContentURL( sm.getId(), ContentTypeEnum.STATUS.name()));
if (sm.getUpdatedTime() != null){
content.setModificationDate(sm.getUpdatedTime().getTime());
}
else{
content.setModificationDate(new Date().getTime());
}
addAttribute(content, "id", sm.getId());
addAttribute(content, "from_name", sm.getFrom().getName());
addAttribute(content, "from_id", sm.getFrom().getId());
addAttribute(content, "message", sm.getMessage());
addAttribute(content, "updateTime", sm.getUpdatedTime() + "");
if (sm.getMessage() != null){
content.setFulltext(sm.getMessage());
}
values = new ArrayList<String>();
if (sm.getLikes() != null){
for (NamedFacebookType nft : sm.getLikes()) {