]> code.citadel.org Git - citadel.git/blobdiff - webcit/rss.c
* add custom notification targets config interface
[citadel.git] / webcit / rss.c
index 7f61889164789828b53b3ca7a6a921cc00a0ea87..08d90cd289244e6ece582ce264f72c2aef7bed76 100644 (file)
@@ -42,7 +42,7 @@ void display_rss_control(char *reply_to, char *subject)
  * roomname the room we sould print out as rss 
  * request_method the way the rss is requested????
  */
-void display_rss(const StrBuf *roomname)
+void display_rss(void)
 {
        message_summary *Msg;
        wcsession *WCC = WC;
@@ -96,7 +96,7 @@ void display_rss(const StrBuf *roomname)
                #endif
        }
 
-       if (gotoroom(roomname)) {
+       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");
@@ -155,7 +155,7 @@ void display_rss(const StrBuf *roomname)
        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 */
@@ -164,7 +164,7 @@ void display_rss(const StrBuf *roomname)
        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");