Only allow MFM content type on Iceshrimp

This commit is contained in:
Jacocococo
2024-08-19 21:59:42 +02:00
parent 6a46815809
commit cd7c546bed

View File

@@ -34,6 +34,8 @@ public enum ContentType {
} }
public boolean supportedByInstance(Instance i) { public boolean supportedByInstance(Instance i) {
if(i.isIceshrimp())
return this==MISSKEY_MARKDOWN || this==UNSPECIFIED;
return i.isAkkoma() || (this!=BBCODE && this!=MISSKEY_MARKDOWN); return i.isAkkoma() || (this!=BBCODE && this!=MISSKEY_MARKDOWN);
} }
} }