ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Atom.cpp
(Generate patch)

Comparing trunk/Atom.cpp (file contents):
Revision 36 by douglas, 2004-07-22T01:19:40-07:00 vs.
Revision 46 by douglas, 2004-08-16T18:52:59-07:00

# Line 20 | Line 20 | Atom::Atom(const Buddy& buddy, const std
20          atom.CloseElement();
21          atom.OpenElement("link");
22          atom.SetAttribute("rel", "alternate");
23 <        atom.SetAttribute("type", "text/html"); // XXX
24 <        atom.SetAttribute("href", "http://computers.douglasthrift.net/zoe.xml");
23 >        atom.SetAttribute("type", "text/html");
24 >        atom.SetAttribute("href", buddy.getLink());
25 >        atom.CloseElement();
26 >        atom.OpenElement("link");
27 >        atom.SetAttribute("rel", "alternate");
28 >        atom.SetAttribute("type", "application/rss+xml");
29 >        atom.SetAttribute("href", buddy.getRssLink());
30          atom.CloseElement();
31          atom.OpenElement("author");
32          atom.OpenElement("name");
# Line 30 | Line 35 | Atom::Atom(const Buddy& buddy, const std
35          atom.CloseElement();
36          atom.OpenElement("tagline");
37          atom.SetAttribute("mode", "escaped");
38 <        atom.OutputText(ext::String(buddy) + "'s AIM Away Messages from the past 30 days.");
38 >        atom.OutputText(ext::String(buddy) + "'s AIM Away Messages from the past 30"
39 >                " days.");
40          atom.CloseElement();
41          atom.OpenElement("generator");
42          atom.SetAttribute("url", Zoe::generator(Zoe::url));
# Line 50 | Line 56 | Atom::Atom(const Buddy& buddy, const std
56                  atom.CloseElement();
57                  atom.OpenElement("link");
58                  atom.SetAttribute("rel", "alternate");
59 <                atom.SetAttribute("type", "text/html"); // XXX
60 <                atom.SetAttribute("href", "http://computers.douglasthrift.net/zoe.xml");
59 >                atom.SetAttribute("type", "text/html");
60 >                atom.SetAttribute("href", message->getLink(buddy));
61                  atom.CloseElement();
62                  atom.OpenElement("id");
63 <                atom.OutputText("zoe:" + ext::String(buddy) + ":" + message->getStamp().getW3());
63 >                atom.OutputText(message->getTag(buddy));
64                  atom.CloseElement();
65                  atom.OpenElement("modified");
66                  atom.OutputText(message->getStamp().getW3());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines