👔 Account verification no longer showing along the individual publisher

This commit is contained in:
2025-10-28 01:19:57 +08:00
parent a958362461
commit 071d51b25e
2 changed files with 7 additions and 6 deletions

View File

@@ -38,12 +38,14 @@ class AccountName extends StatelessWidget {
final TextStyle? style;
final String? textOverride;
final bool ignorePermissions;
final bool hideVerificationMark;
const AccountName({
super.key,
required this.account,
this.style,
this.textOverride,
this.ignorePermissions = false,
this.hideVerificationMark = false,
});
Alignment _parseGradientDirection(String direction) {
@@ -188,7 +190,8 @@ class AccountName extends StatelessWidget {
),
if (account.perkSubscription != null)
StellarMembershipMark(membership: account.perkSubscription!),
if (account.profile.verification != null)
if (account.profile.verification != null &&
!hideVerificationMark)
VerificationMark(mark: account.profile.verification!),
if (account.automatedId != null)
Tooltip(

View File

@@ -609,6 +609,7 @@ class PostHeader extends StatelessWidget {
account: item.publisher.account!,
textOverride: item.publisher.nick,
style: TextStyle(fontWeight: FontWeight.bold),
hideVerificationMark: true,
)
: Text(
item.publisher.nick,
@@ -616,11 +617,8 @@ class PostHeader extends StatelessWidget {
overflow: TextOverflow.ellipsis,
).bold(),
),
if (!(item.publisher.account?.profile.verification !=
null &&
item.publisher.type == 0))
if (item.publisher.verification != null)
VerificationMark(mark: item.publisher.verification!),
if (item.publisher.verification != null)
VerificationMark(mark: item.publisher.verification!),
if (item.realm == null)
Flexible(
child: