diff --git a/system/admin/admin.php b/system/admin/admin.php index d428b38..53c7f74 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -404,6 +404,15 @@ function get_feed($feed_url, $credit) } } +// Get recent posts by user +function get_my_posts() +{ + if (isset($_SESSION[config("site.url")]['user'])) { + $posts = get_profile($_SESSION[config("site.url")]['user'], 1, 5); + return $posts; + } +} + // Get recent posts by user function get_recent_posts() {