madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11801: LJSUP-11858: Vkontakte integration

Committer: sbelyaev
LJSUP-11858: Vkontakte integration
U   trunk/cgi-bin/LJ/Worker/Repost/EntryToVkontakte.pm
Modified: trunk/cgi-bin/LJ/Worker/Repost/EntryToVkontakte.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/Repost/EntryToVkontakte.pm	2012-04-25 13:35:46 UTC (rev 11800)
+++ trunk/cgi-bin/LJ/Worker/Repost/EntryToVkontakte.pm	2012-04-25 13:42:47 UTC (rev 11801)
@@ -50,8 +50,11 @@
 
 
     if (!$error) {
-        my $postid = $result->{'post_id'};
-        $entry->set_prop('crosspost_vk' => "http://www.vk.com/wall" );
+        my $response  = $result->{'response'};
+        my $postid    = $response->{'post_id'};  
+        my $vk_userid = $poster->prop('vkontakte_userid');
+
+        $entry->set_prop('crosspost_vk' => "http://www.vk.com/wall${vk_userid}_$postid" );
     } else {
         my $error_string = "Repost entry to VK error: " .$error->{'error_code'} .
                         " / " . $error->{'error_msg'};

Tags: ljcom, madeon, pm, sbelyaev
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