Allow external shares to a story.

This commit is contained in:
Alex Hart
2022-03-11 14:32:08 -04:00
committed by Cody Henthorne
parent 732b67d8cb
commit 54eb579558
5 changed files with 32 additions and 5 deletions

View File

@@ -320,6 +320,10 @@ public class MediaUtil {
return isImageType(contentType) || isVideoType(contentType);
}
public static boolean isStorySupportedType(String contentType) {
return isImageOrVideoType(contentType) && !isGif(contentType);
}
public static boolean isImageVideoOrAudioType(String contentType) {
return isImageOrVideoType(contentType) || isAudioType(contentType);
}