Permalink
Browse files

[COLAB-2957] Fix default images for proposals

  • Loading branch information...
jobachhu committed Dec 14, 2018
1 parent 0b83a58 commit dff3fce772caa39074650fc1db974ebb3d44426f
@@ -394,6 +394,9 @@ public long getImageId() {
@JsonIgnore
public String getLogoPath() {
String imageDomain = PlatformAttributeKey.CDN_URL_IMAGES_UPLOADED.get();
if (getImageId() == 0 && getContest().getDefaultProposalLogoId() != null) {
return imageDomain + "/image/proposal/" + getContest().getDefaultProposalLogoId();
}
return imageDomain + "/image/proposal/" + getImageId();
}

0 comments on commit dff3fce

Please sign in to comment.