Skip to content

Commit

Permalink
Fix failed uploads for files in nested folders
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmagoo committed Apr 12, 2024
1 parent 396aa93 commit 90a68ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/NostrService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ export default class NostrService {

try {
let vaultResolvedLinks = this.app.metadataCache.resolvedLinks;
if (vaultResolvedLinks[activeFile.name]) {
const fileContents = vaultResolvedLinks[activeFile.name];
if (vaultResolvedLinks[activeFile.path]) {
const fileContents = vaultResolvedLinks[activeFile.path];
for (const filePath of Object.keys(fileContents)) {
if (this.isImagePath(filePath)) {
imagePaths.push(filePath);
Expand Down

0 comments on commit 90a68ac

Please sign in to comment.