From 2df28057cdd5c54fb4f754f5c2222154efe2ad5b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 8 May 2008 12:21:45 -0400 Subject: [PATCH] start showstream darcs-hash:20080508162145-84dde-9ae0fdcc75d794df754708642d8786ccd95d9461.gz --- actions/showstream.php | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/actions/showstream.php b/actions/showstream.php index 2aaaacd0a1..d3352e77d8 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -1,6 +1,45 @@ id); + + if (!$user) { + // remote profile + showstream_no_such_user(); + } + + if ($profile->id == current_user()->id) { + showstream_notice_form(); + } + + showstream_show_profile($profile); + + $notice = DB_DataObject::factory('notice'); + $notice->profile_id = $profile->id; + $notice->limit(1, 10); + + $notice->find(); + + while ($notice->fetch()) { + showstream_show_notice($notice); + } } +function showstream_no_such_user() { + common_user_error('No such user'); +} + +function showstream_notice_form() { + // print notice form +} + +function showstream_show_profile($profile) { +} \ No newline at end of file