holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22920: LJSUP-13687: 1. New message. Inbox ?\226...

Committer: akanashin
LJSUP-13687: 1. New message. Inbox ?\226?\128?\148 Draft
U   trunk/bin/upgrading/proplists.dat
U   trunk/htdocs/tools/endpoints/draft.bml
Modified: trunk/bin/upgrading/proplists.dat
===================================================================
--- trunk/bin/upgrading/proplists.dat	2012-09-18 12:38:24 UTC (rev 22919)
+++ trunk/bin/upgrading/proplists.dat	2012-09-18 13:51:06 UTC (rev 22920)
@@ -350,6 +350,14 @@
   multihomed: 1
   prettyname: ICQ
 
+userproplist.message_draft:
+  cldversion: 4
+  datatype: blobchar
+  des: Backup of a user's most recent unsended message
+  indexed: 0
+  multihomed: 0
+  prettyname: New Message Draft
+
 userproplist.init_bdate:
   cldversion: 4
   datatype: char

Modified: trunk/htdocs/tools/endpoints/draft.bml
===================================================================
--- trunk/htdocs/tools/endpoints/draft.bml	2012-09-18 12:38:24 UTC (rev 22919)
+++ trunk/htdocs/tools/endpoints/draft.bml	2012-09-18 13:51:06 UTC (rev 22920)
@@ -21,15 +21,14 @@
     }
 
     my $ret = {};
-    my $prop_name = delete $POST{'prop_name'} || 'entry_draft';
     my $draft = delete $POST{'saveDraft'};
 
     if ( defined $draft ) {
-        $u->set_draft_text(encode($draft), $prop_name);
+        $u->set_draft_text(encode($draft));
     } elsif ( $POST{'clearDraft'} ) {
-        $u->set_draft_text('', $prop_name);
+        $u->set_draft_text('');
     } else {
-        my $decoded = decode($u->draft_text($prop_name));
+        my $decoded = decode($u->draft_text);
         if ( ref $decoded ) {
             %$ret = (%$ret, %$decoded);
         } else {

Tags: akanashin, bml, dat, holyandrew, livejournal
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