mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
even simplier tests
This commit is contained in:
parent
50b6351b39
commit
97c365cb05
5 changed files with 48 additions and 108 deletions
|
|
@ -98,5 +98,6 @@ String? punycodeDecodeUrl(String? serverUrl) {
|
|||
/// - If slug is present: 's/${sharedLink.slug}'
|
||||
/// - Otherwise: 'share/${sharedLink.key}'
|
||||
String getShareUrlPath(SharedLink sharedLink) {
|
||||
return sharedLink.slug != null ? 's/${sharedLink.slug}' : 'share/${sharedLink.key}';
|
||||
final slug = sharedLink.slug?.trim();
|
||||
return slug?.isNotEmpty == true ? 's/$slug' : 'share/${sharedLink.key}';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue