]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/inbox.php
Some adjustments to allow the Facebook app work with Laconica 0.8
[quix0rs-gnu-social.git] / actions / inbox.php
index d12f3f20ae6ec8393a8e150f8fecc737c8fe2374..7b5cf2d203d8f6abf1380ac74cc6e234f1d1d125 100644 (file)
@@ -70,19 +70,8 @@ class InboxAction extends MailboxAction
      */
     function showRelationshipLinks()
     {
-        // Machine-readable pagination
-        if ($this->page > 1) {
-            $this->element('link', array('rel' => 'next',
-                                         'href' => common_local_url('inbox',
-                                                                    array('nickname' => $this->user->nickname,
-                                                                          'page' => $this->page - 1)),
-                                         'title' => _('Next Messages')));
-        }
-        $this->element('link', array('rel' => 'prev',
-                                     'href' => common_local_url('inbox',
-                                                                array('nickname' => $this->user->nickname,
-                                                                      'page' => $this->page + 1)),
-                                     'title' => _('Previous Messages')));
+        $this->sequenceRelationships($this->page > 1, $this->count > NOTICES_PER_PAGE, // FIXME
+                                     $this->page, 'inbox', array('nickname' => $this->user->nickname));
     }
 
     /**