add: dedicated responses tab for profiles
This commit is contained in:
parent
9ba6320d46
commit
07a23f505b
24 changed files with 332 additions and 55 deletions
|
@ -262,33 +262,50 @@ impl DataManager {
|
|||
|
||||
// check if we're staff
|
||||
if initiator.permissions.check(FinePermission::STAFF_BADGE) {
|
||||
self.add_achievement(&mut other_user, AchievementName::FollowedByStaff.into())
|
||||
.await?;
|
||||
self.add_achievement(
|
||||
&mut other_user,
|
||||
AchievementName::FollowedByStaff.into(),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
// other achivements
|
||||
self.add_achievement(&mut other_user, AchievementName::Get1Follower.into())
|
||||
self.add_achievement(&mut other_user, AchievementName::Get1Follower.into(), true)
|
||||
.await?;
|
||||
|
||||
if other_user.follower_count >= 9 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get10Followers.into())
|
||||
.await?;
|
||||
self.add_achievement(
|
||||
&mut other_user,
|
||||
AchievementName::Get10Followers.into(),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if other_user.follower_count >= 49 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get50Followers.into())
|
||||
.await?;
|
||||
self.add_achievement(
|
||||
&mut other_user,
|
||||
AchievementName::Get50Followers.into(),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if other_user.follower_count >= 99 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get100Followers.into())
|
||||
.await?;
|
||||
self.add_achievement(
|
||||
&mut other_user,
|
||||
AchievementName::Get100Followers.into(),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if initiator.following_count >= 9 {
|
||||
self.add_achievement(
|
||||
&mut initiator.clone(),
|
||||
AchievementName::Follow10Users.into(),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue