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 {
|
} else {
|
||||||
tag = pathEnd;
|
tag = pathEnd;
|
||||||
}
|
}
|
||||||
// final tagLowercase = tag.toLowerCase();
|
final tagLowercase = tag.toLowerCase();
|
||||||
// final hasExpectedTag = tags
|
final hasExpectedTag = tags
|
||||||
// .firstWhere((t) => t.toLowerCase() == tagLowercase,
|
.firstWhere((t) => t.toLowerCase() == tagLowercase, orElse: () => '')
|
||||||
// orElse: () => '')
|
.isNotEmpty;
|
||||||
// .isNotEmpty;
|
|
||||||
const hasExpectedTag = true;
|
|
||||||
if (hasExpectedTag) {
|
if (hasExpectedTag) {
|
||||||
final profile = getIt<AccountsService>().currentProfile;
|
final profile = getIt<AccountsService>().currentProfile;
|
||||||
final newTagUrl = generateTagUrlFromProfile(profile, tag);
|
final newTagUrl = generateTagUrlFromProfile(profile, tag);
|
||||||
|
|
Ładowanie…
Reference in New Issue