Code comments to clear up isIceshrimp and isIceshrimpJs

This commit is contained in:
Jacocococo 2024-08-27 22:16:59 +02:00
parent f28e06d2f5
commit f146067cda

View file

@ -154,10 +154,12 @@ public class Instance extends BaseModel{
return version.contains("compatible; Pixelfed");
}
// For both Iceshrimp-JS and Iceshrimp.NET
public boolean isIceshrimp() {
return version.contains("compatible; Iceshrimp");
}
// Only for Iceshrimp-JS
public boolean isIceshrimpJs() {
return version.contains("compatible; Iceshrimp "); // Iceshrimp.NET will not have a space immediately after
}