You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
All: Also duplicate resources when duplicating a note
Ref: https://github.com/laurent22/joplin/issues/5796
This commit is contained in:
@@ -364,7 +364,7 @@ export default class Resource extends BaseItem {
|
||||
return await this.fsDriver().readFile(Resource.fullPath(resource), encoding);
|
||||
}
|
||||
|
||||
static async duplicateResource(resourceId: string) {
|
||||
public static async duplicateResource(resourceId: string): Promise<ResourceEntity> {
|
||||
const resource = await Resource.load(resourceId);
|
||||
const localState = await Resource.localState(resource);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user