Record which interface a post came in on.
This patch was pulled from the LiveJournal.com repository.
Patch by denise.
diffs (36 lines):
diff -r 3ce5b91735c7 -r 4418c40f7083
cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm
--- a/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm Mon Oct 26 02:47:57
2009 +0000
+++ b/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm Mon Oct 26 02:50:30
2009 +0000
@@ -198,6 +198,8 @@ sub handle_post {
'tz' => 'guess',
%$security_opts,
};
+
+ $req->{'props'}->{'interface'} = "atom";
my $err;
my $res = LJ::Protocol::do_request("postevent",
diff -r 3ce5b91735c7 -r 4418c40f7083
cgi-bin/Apache/LiveJournal/Interface/Blogger.pm
--- a/cgi-bin/Apache/LiveJournal/Interface/Blogger.pm Mon Oct 26 02:47:57
2009 +0000
+++ b/cgi-bin/Apache/LiveJournal/Interface/Blogger.pm Mon Oct 26 02:50:30
2009 +0000
@@ -69,6 +69,8 @@ sub newPost {
'props' => $event->{'props'},
'tz' => 'guess',
};
+
+ $req->{'props'}->{'interface'} = "blogger";
my $res = LJ::Protocol::do_request("postevent", $req, \$err);
diff -r 3ce5b91735c7 -r 4418c40f7083 cgi-bin/ljprotocol.pl
--- a/cgi-bin/ljprotocol.pl Mon Oct 26 02:47:57 2009 +0000
+++ b/cgi-bin/ljprotocol.pl Mon Oct 26 02:50:30 2009 +0000
@@ -3411,6 +3411,8 @@ sub postevent
my $rq = upgrade_request($req);
flatten_props($req, $rq);
+ $rq->{'props'}->{'interface'} = "flat";
+
my $rs = LJ::Protocol::do_request("postevent", $rq, \$err, $flags);
unless ($rs) {
$res->{'success'} = "FAIL";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog