Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

Fix Wiki media link to call RawLink func

This commit is contained in:
Nirmal Kumar R 2024-11-05 01:17:49 +00:00
parent b4a0f47d2c
commit fbc8b2790e

View file

@ -121,7 +121,7 @@ func (l *Links) WikiRawLink() string {
func (l *Links) ResolveMediaLink(isWiki bool) string {
if isWiki {
return l.WikiRawLink()
return l.RawLink()
} else if l.HasBranchInfo() {
return l.MediaLink()
}