From 0e81a0b5e2041efd3c6e55ce342e20ea06dd753b Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 29 Oct 2022 22:28:54 -0400 Subject: [PATCH] handlers.c: fix Atom links not registering if rel=alternate --- handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.c b/handlers.c index 5eb3eac..da3899a 100644 --- a/handlers.c +++ b/handlers.c @@ -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);