handlers.c: fix Atom links not registering if rel=alternate

This commit is contained in:
dogeystamp 2022-10-29 22:28:54 -04:00
parent 418a835857
commit 0e81a0b5e2
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -53,7 +53,7 @@ atomLink(itemStruct *item, xmlNodePtr node)
return 1;
}
if (!rel) {
if (!rel || propIs(rel, "alternate")) {
copyField(item, FIELD_LINK, (char *)href);
} else if (propIs(rel, "enclosure")) {
copyField(item, FIELD_ENCLOSURE_URL, (char *)href);