aboutsummaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorMarvin Borner2018-09-06 23:13:04 +0200
committerMarvin Borner2018-09-06 23:13:04 +0200
commitbd568608bcda0729044e823aedfa799e10692e14 (patch)
treeeb6f2cf588e0b379a86b00e13862564bab6dff58 /api
parenteb22b854b7ccc5ef88f984cde0398542bca242b5 (diff)
Removed user entry from default post api response
Diffstat (limited to 'api')
-rw-r--r--api/Posts/Repositories/PostRepository.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/Posts/Repositories/PostRepository.php b/api/Posts/Repositories/PostRepository.php
index 1f035b7..c554e82 100644
--- a/api/Posts/Repositories/PostRepository.php
+++ b/api/Posts/Repositories/PostRepository.php
@@ -14,7 +14,7 @@ class PostRepository extends Repository
public function getJoined($options)
{
- $query = Post::query()->with('user')->with('post_type');
+ $query = Post::query()->with('post_type');
$this->applyResourceOptions($query, $options);
$posts = $query->get();
$joinedPosts = [];
@@ -30,7 +30,7 @@ class PostRepository extends Repository
public function getJoinedById($postId)
{
- $query = Post::query()->with('user')->with('post_type')->where('id', $postId);
+ $query = Post::query()->with('post_type')->where('id', $postId);
$post = $query->first();
$postType = 'Api\Posts\Models\\' . $post["post_type"]["type"] . 'Post';