]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
better output for registration confirmation
[quix0rs-gnu-social.git] / actions / all.php
index 5fd2475e4911f3b467a8836cfba87b92a63cdc36..96f688f72083dbf9a94b9ee95f27647458a42fe7 100644 (file)
@@ -56,7 +56,7 @@ class AllAction extends ProfileAction
     {
         parent::prepare($args);
 
-        $stream = new InboxNoticeStream($this->user);
+        $stream = new ThreadingInboxNoticeStream($this->user, Profile::current());
 
         $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
                                             NOTICES_PER_PAGE + 1,
@@ -183,6 +183,16 @@ class AllAction extends ProfileAction
         }
     }
 
+    function showSections()
+    {
+        $ibs = new InviteButtonSection($this);
+        $ibs->show();
+        $this->showSubscriptions();
+        $this->showSubscribers();
+        $this->showGroups();
+        $this->showLists();
+    }
+
     function showPageTitle()
     {
         $user = common_current_user();
@@ -195,3 +205,11 @@ class AllAction extends ProfileAction
         }
     }
 }
+
+class ThreadingInboxNoticeStream extends ThreadingNoticeStream
+{
+    function __construct($user, $profile)
+    {
+        parent::__construct(new InboxNoticeStream($user, $profile));
+    }
+}