From 83052f0a8081f1c482da1dec750702c7976706a1 Mon Sep 17 00:00:00 2001 From: Aditya Sankaran Date: Fri, 8 Nov 2019 17:09:57 -0500 Subject: [PATCH] user Feed --- firebase.json | 1 - twistter-frontend/src/Feed.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/firebase.json b/firebase.json index 0e2c6a7..0cb8a93 100644 --- a/firebase.json +++ b/firebase.json @@ -8,7 +8,6 @@ }, "functions": { "predeploy": [ - "npm --prefix \"$RESOURCE_DIR\" run lint" ] }, "hosting": { diff --git a/twistter-frontend/src/Feed.js b/twistter-frontend/src/Feed.js index 07cc9e9..de9aa37 100644 --- a/twistter-frontend/src/Feed.js +++ b/twistter-frontend/src/Feed.js @@ -26,7 +26,7 @@ class Feed extends Component { componentDidMount() { - axios.get("https://us-central1-twistter-e4649.cloudfunctions.net/api/getallPostsforFeed") + axios.get("/getallPostsforFeed") .then((res) => { const post = res.data; this.setState({microBlogs : post}) @@ -55,7 +55,7 @@ class Feed extends Component { " " + microBlog.createdAt.substring(11,19)}

Who wrote the microBlog: {microBlog.userHandle}

Body of post: {microBlog.body} -

ID of post: {microBlog.id} +

Tagged topics: {microBlog.microBlogTopics.join("," + " ")}