Code comments to clear up isIceshrimp and isIceshrimpJs
This commit is contained in:
parent
f28e06d2f5
commit
f146067cda
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue