mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-06 05:49:49 +02:00
Display the Follow Chip only if the user can be followed. Change schemes of database users.
This commit is contained in:
@@ -16,13 +16,16 @@ public class UserData extends SubscribedUserData {
|
||||
private boolean isGold;
|
||||
@ColumnInfo(name = "is_friend")
|
||||
private boolean isFriend;
|
||||
@ColumnInfo(name = "can_be_followed")
|
||||
private boolean canBeFollowed;
|
||||
|
||||
public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend) {
|
||||
public UserData(@NonNull String name, String iconUrl, String banner, int karma, boolean isGold, boolean isFriend, boolean canBeFollowed) {
|
||||
super(name, iconUrl);
|
||||
this.banner = banner;
|
||||
this.karma = karma;
|
||||
this.isGold = isGold;
|
||||
this.isFriend = isFriend;
|
||||
this.canBeFollowed = canBeFollowed;
|
||||
}
|
||||
|
||||
public String getBanner() {
|
||||
@@ -40,4 +43,8 @@ public class UserData extends SubscribedUserData {
|
||||
public boolean isFriend() {
|
||||
return isFriend;
|
||||
}
|
||||
|
||||
public boolean isCanBeFollowed() {
|
||||
return canBeFollowed;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user