aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/feed
diff options
context:
space:
mode:
Diffstat (limited to 'core/include/feed')
-rw-r--r--core/include/feed/main.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/feed/main.php b/core/include/feed/main.php
index 765f296..76bf23e 100644
--- a/core/include/feed/main.php
+++ b/core/include/feed/main.php
@@ -23,7 +23,7 @@ if(!isset($param) OR $param !== 'page') {
foreach($postIDs as $postID) {
try {
$Post = Post\Factory::build($postID);
- $User = User\Factory::build($Post->attr('user'));
+ $User = User\Factory::build($Post->get('user'));
$ItemTemplate = Template\Factory::build('feed/item_post');
$ItemTemplate->set('POST', generateItemTemplateData($Post));
@@ -50,7 +50,7 @@ if(!isset($param) OR $param !== 'post') {
foreach($pageIDs as $pageID) {
try {
$Page = Page\Factory::build($pageID);
- $User = User\Factory::build($Page->attr('user'));
+ $User = User\Factory::build($Page->get('user'));
$ItemTemplate = Template\Factory::build('feed/item_page');
$ItemTemplate->set('PAGE', generateItemTemplateData($Page));