Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Profile Section: Current User Posts - #256

Open
rheo-chiti wants to merge 1 commit into
scorelab:masterfrom
rheo-chiti:PR#8
Open

Profile Section: Current User Posts#256
rheo-chiti wants to merge 1 commit into
scorelab:masterfrom
rheo-chiti:PR#8

Conversation

@rheo-chiti

@rheo-chiti rheo-chiti commented Mar 28, 2020

Copy link
Copy Markdown

This solves #255

Current User Posts Screen
On clicking posts in the profile screen, the user is navigated to here. Data is fetched from the firebase. Firstly all posts are fetched, then a filter is applied which only allows those user posts whose email id matches current user email id. This code is used :-

let newPosts = posts.filter(function (post) { return post.email === currentUserEmail; })

image

Firebase console

image

@rheo-chiti rheo-chiti changed the title View current user posts Profile Section: Current User Posts Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant