]> code.citadel.org Git - citadel.git/blobdiff - webcit/rss.c
* add custom notification targets config interface
[citadel.git] / webcit / rss.c
index 3279f9215e1a8807dd98ec331733f5a939feb5b7..08d90cd289244e6ece582ce264f72c2aef7bed76 100644 (file)
@@ -72,8 +72,7 @@ void display_rss(void)
        char msgn[256];
        char content_type[256];
        char charset[256];
-       const StrBuf *roomname;
-
+       
        if (!WCC->logged_in) {
                #ifdef ALLOW_ANON_RSS
                StrBuf *User;
@@ -97,7 +96,7 @@ void display_rss(void)
                #endif
        }
 
-       if (gotoroom(WCC->Hdr->ReqLine)) {
+       if (gotoroom(WCC->Hdr->HR.ReqLine)) {
                lprintf(3, "RSS: Can't goto requested room\n");
                hprintf("HTTP/1.1 404 Not Found\r\n");
                hprintf("Content-Type: text/html\r\n");
@@ -156,7 +155,7 @@ void display_rss(void)
        hprintf("Content-Type: application/rss+xml\r\n");
        hprintf("Server: %s\r\n", PACKAGE_STRING);
        hprintf("Connection: close\r\n");
-       if (WCC->Hdr->eReqType == eHEAD)
+       if (WCC->Hdr->HR.eReqType == eHEAD)
                return;
 
        /* <?xml.. etc confuses our subst parser, so do it here */
@@ -165,7 +164,7 @@ void display_rss(void)
        SVPutBuf("ROOM", WCC->wc_roomname, 1);
        SVPutBuf("NODE", WCC->serv_info->serv_humannode, 1);
        /* TODO:  Fix me */
-       svprintf(HKEY("ROOM_LINK"), WCS_STRING, "%s://%s/", (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->http_host));
+       svprintf(HKEY("ROOM_LINK"), WCS_STRING, "%s://%s/", (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->HR.http_host));
        
        /** Get room info for description */
        serv_puts("RINF");