handlers.c: fix Atom links not registering if rel=alternate
This commit is contained in:
parent
418a835857
commit
0e81a0b5e2
@ -53,7 +53,7 @@ atomLink(itemStruct *item, xmlNodePtr node)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rel) {
|
if (!rel || propIs(rel, "alternate")) {
|
||||||
copyField(item, FIELD_LINK, (char *)href);
|
copyField(item, FIELD_LINK, (char *)href);
|
||||||
} else if (propIs(rel, "enclosure")) {
|
} else if (propIs(rel, "enclosure")) {
|
||||||
copyField(item, FIELD_ENCLOSURE_URL, (char *)href);
|
copyField(item, FIELD_ENCLOSURE_URL, (char *)href);
|
||||||
|
Loading…
Reference in New Issue
Block a user