+ 1

Adding only followed images?

Im using ASP.NET Webforms to make my web programming project, im trying to clone Instagram. The issue is that I want to show the images of only that user to which a user has followed, and dont show them if they are unfollowed. The images will be displayed on a timeline (like the one in Instagram). How can I do this? Answers are highly appreciated. Thanks

9th Apr 2019, 2:01 PM
That Guy
That Guy - avatar
1 Answer
You must have a database with the table of images. Every image Id is corresponding to user Id. In other table you would have user followers. So just take the IDs of images of the followers and show them. I don't know how you keep your images, but information about them must be in that table of images. You can use mongo and grid for example.
11th Apr 2019, 6:57 AM
Владимир Землянушкин
Владимир Землянушкин - avatar