kopia lustrzana https://gitlab.com/mysocialportal/relatica
Add check that tag getting converted match expected tags from rest of status payload
rodzic
9b778999e5
commit
6efc9ec122
|
@ -31,12 +31,10 @@ void _updateSwapTagLinks(Node node, List<String> tags) {
|
|||
} else {
|
||||
tag = pathEnd;
|
||||
}
|
||||
// final tagLowercase = tag.toLowerCase();
|
||||
// final hasExpectedTag = tags
|
||||
// .firstWhere((t) => t.toLowerCase() == tagLowercase,
|
||||
// orElse: () => '')
|
||||
// .isNotEmpty;
|
||||
const hasExpectedTag = true;
|
||||
final tagLowercase = tag.toLowerCase();
|
||||
final hasExpectedTag = tags
|
||||
.firstWhere((t) => t.toLowerCase() == tagLowercase, orElse: () => '')
|
||||
.isNotEmpty;
|
||||
if (hasExpectedTag) {
|
||||
final profile = getIt<AccountsService>().currentProfile;
|
||||
final newTagUrl = generateTagUrlFromProfile(profile, tag);
|
||||
|
|
Ładowanie…
Reference in New Issue