]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
Show author in addition to feedname, if different.
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index e313eb7755313ea051b14f43310168fb5750dd0e..455ac3ad55f4d468c80e5234816ba599f3527a33 100644 (file)
@@ -672,11 +672,7 @@ sub genfeed ($$$$$@) {
 
                        if (exists $pagestate{$p}{meta}{enclosure}) {
                                my $absurl = $pagestate{$p}{meta}{enclosure};
-
-                               # XXX better way to compute relative to srcdir?
-                               my $file = $absurl;
-                               $file =~ s|^$config{url}/||;
-
+                               my $file = $pagestate{$p}{meta}{enclosurefile};
                                genenclosure($itemtemplate, $absurl, $file);
                                $fancy_enclosure_seen = 1;
                        }