mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-06 13:08:24 +00:00
Workaround for non-string tags
This commit is contained in:
@@ -33,6 +33,10 @@ mixin FileMetadataAdapter on Adapter<FileMetadata> {
|
||||
for (final e in list) {
|
||||
final map = e as Map<String, dynamic>;
|
||||
map['author'] = map['pubkey'];
|
||||
// Ensure tags are strings
|
||||
for (var t in map['tags']) {
|
||||
t[1] = t[1].toString();
|
||||
}
|
||||
}
|
||||
return super.deserialize(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user