add: dedicated responses tab for profiles

This commit is contained in:
trisua 2025-07-06 13:34:20 -04:00
parent 9ba6320d46
commit 07a23f505b
24 changed files with 332 additions and 55 deletions

View file

@ -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?;
}