Skip to content

Commit

Permalink
🎨 Protyle Improve assets hosting siyuan-note/siyuan#13569
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 27, 2024
1 parent 62695d4 commit 570570b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions render/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ func (r *BaseRenderer) RelativePath(dest []byte) []byte {
return dest
}

if strings.HasPrefix(r.Options.LinkBase, "https://assets.b3logfile.com/siyuan/") ||
strings.HasPrefix(r.Options.LinkBase, "https://assets.liuyun.io/siyuan/") {
// 思源笔记云端图床服务
if !bytes.HasPrefix(dest, []byte("assets/")) &&
(strings.HasPrefix(r.Options.LinkBase, "https://assets.b3logfile.com/siyuan/") || strings.HasPrefix(r.Options.LinkBase, "https://assets.liuyun.io/siyuan/")) {
return dest
}

Expand Down

0 comments on commit 570570b

Please sign in to comment.