Fix #834
This commit is contained in:
parent
0e868f0be0
commit
4a1b1e19e8
|
@ -173,7 +173,7 @@ public class MediaGridStatusDisplayItem extends StatusDisplayItem{
|
||||||
}
|
}
|
||||||
controllers.add(c);
|
controllers.add(c);
|
||||||
|
|
||||||
if (item.status.translation != null){
|
if (item.status.translation!=null && item.status.translation.mediaAttachments!=null){
|
||||||
if(item.status.translationState==Status.TranslationState.SHOWN){
|
if(item.status.translationState==Status.TranslationState.SHOWN){
|
||||||
if(!item.translatedAttachments.containsKey(att.id)){
|
if(!item.translatedAttachments.containsKey(att.id)){
|
||||||
Optional<Translation.MediaAttachment> translatedAttachment=Arrays.stream(item.status.translation.mediaAttachments).filter(mediaAttachment->mediaAttachment.id.equals(att.id)).findFirst();
|
Optional<Translation.MediaAttachment> translatedAttachment=Arrays.stream(item.status.translation.mediaAttachments).filter(mediaAttachment->mediaAttachment.id.equals(att.id)).findFirst();
|
||||||
|
|
Loading…
Reference in New Issue