alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[ljcom] r8128: LJSUP-5444: Add journalid tag into atom ...

Committer: afedorov
LJSUP-5444: Add journalid tag into atom stream

U   trunk/bin/worker/atomstream-inject
U   trunk/cgi-bin/LJ/Stream/Comment.pm
Modified: trunk/bin/worker/atomstream-inject
===================================================================
--- trunk/bin/worker/atomstream-inject	2010-01-25 04:59:25 UTC (rev 8127)
+++ trunk/bin/worker/atomstream-inject	2010-01-25 05:19:43 UTC (rev 8128)
@@ -60,7 +60,7 @@
  <title type='text'>@{[ LJ::exml($name)  ]}</title>
  <link href="@{[  LJ::exml($url)  ]}" />
  <link rel="self" type="application/atom+xml" href="$atom_url" />
- <author><name>@{[ LJ::exml($ju->{'name'} || $ju->{'user'}) ]}</name><lj:journal>$ju->{user}</lj:journal></author>
+ <author><name>@{[ LJ::exml($ju->{'name'} || $ju->{'user'}) ]}</name><lj:journal>$ju->{user}</lj:journal><lj:journalid>$ju->{userid}</lj:journalid></author>
 END_ATOM
 
 

Modified: trunk/cgi-bin/LJ/Stream/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Stream/Comment.pm	2010-01-25 04:59:25 UTC (rev 8127)
+++ trunk/cgi-bin/LJ/Stream/Comment.pm	2010-01-25 05:19:43 UTC (rev 8128)
@@ -77,7 +77,7 @@
 <feed xmlns='http://www.w3.org/2005/Atom' xmlns:lj="$LJ::SITEROOT" $noidx>
  <title type='text'>@{[ LJ::exml($name) ]}</title>
  <link href="@{[  LJ::exml($url)  ]}" />
- <author><name>@{[ LJ::exml($ju->{'name'} || $ju->{'user'}) ]}</name><lj:journal>$ju->{'user'}</lj:journal></author>
+ <author><name>@{[ LJ::exml($ju->{'name'} || $ju->{'user'}) ]}</name><lj:journal>$ju->{'user'}</lj:journal><lj:journalid>$ju->{'userid'}</lj:journalid></author>
 END_ATOM
 
     my $c_title   = LJ::exml($comment->subject_text);

Tags: ljcom, pm, red_alf
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments