mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-18 04:10 am

[dw-free] fix mobile/read.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/972523ff650d]

http://bugs.dwscoalition.org/show_bug.cgi?id=758

Minimally update /mobile/friends.bml to render your reading page.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/mobile/friends.bml
--------------------------------------------------------------------------------
diff -r d3d6d154fd5b -r 972523ff650d htdocs/mobile/friends.bml
--- a/htdocs/mobile/friends.bml	Sat Apr 18 04:04:06 2009 +0000
+++ b/htdocs/mobile/friends.bml	Sat Apr 18 04:10:55 2009 +0000
@@ -24,16 +24,16 @@
 
     # Filter first to a "Mobile View" friends group if they have one,
     # then fall back to "Default View", and then just show them everything
-    my $filter;
+#    my $filter;
     my $groupname = "All friends";
 
-    foreach ("Mobile View", "Default View") {
-        if (my $grp = LJ::get_friend_group($u, { 'name' => $_ })) {
-            $groupname = $_;
-            $filter = 1 << $grp->{'groupnum'};
-            last;
-        }
-    }
+#    foreach ("Mobile View", "Default View") {
+#        if (my $grp = LJ::get_friend_group($u, { 'name' => $_ })) {
+#            $groupname = $_;
+#            $filter = 1 << $grp->{'groupnum'};
+#            last;
+#        }
+#    }
 
     $ret = qq {
             <a href='./'>&lt;&lt; Back</a> to LiveJournal Mobile.
@@ -45,15 +45,15 @@
         };
 
 
-    my @entries = LJ::get_friend_items({
-        'remoteid'          => $u->{'userid'},
+    my @entries = $u->watch_items(
+        'remote'            => $u->{'userid'},
         'itemshow'          => $itemsperpage,
         'skip'              => $skip,
         'showtypes'         => 'PYC',
         'u'                 => $u,
         'userid'            => $u->{'userid'},
-        'filter'            => $filter,
-    });
+#        'filter'            => $filter,
+    );
 
     # how many characters to truncate entry at
     my $max_entry_length = 400;
--------------------------------------------------------------------------------