refactor(StatusPrivacy.java): add back the isReblogPermitted method

This commit is contained in:
LucasGGamerM
2025-04-13 12:56:38 -03:00
parent 4d4543351f
commit 2df7aade48

View File

@@ -24,6 +24,13 @@ public enum StatusPrivacy{
return privacy > other.getPrivacy();
}
public boolean isReblogPermitted(boolean isOwnStatus){
return (this == StatusPrivacy.PUBLIC ||
this == StatusPrivacy.UNLISTED ||
this == StatusPrivacy.LOCAL ||
(this == StatusPrivacy.PRIVATE && isOwnStatus));
}
public int getPrivacy() {
return privacy;
}