ITU-BDSA2024-GROUP7 / Chirp

A project for a twitter clone called Chirp!
http://bdsagroup07chirprazor.azurewebsites.net/
MIT License
1 stars 0 forks source link

Popular Cheeps! #188

Closed Nikolaj787 closed 5 days ago

Nikolaj787 commented 6 days ago

Main feature for this Pull Request

There is now a new cshtml file called "PopularTimeline". This is a new page for all the popular cheeps. A lot of the functionality remains the same as the public time. But this page will only show the cheeps that are the most "popular". Popularity at the moment is only based on likes. This will be changed with Karma, so that dislikes have an influence on it. At the moment dislikes, do not have an influence on ones popularity. Also cheeps on this page will not be shown if it has 0 likes at the moment.

New buttons added on Public and Popular page

Two new buttons have been added on both the pages. A button called "newest" and one called "popular". These will take you to the wanted page. This is instead of cluttering the buttons to the left of the page even more than necessary

New methods in CheepRepository and CheepService

There is also added new methods in CheepRepository and CheepService to only get the most popular cheeps, and to get the total number of pages for the popular cheeps specifically

Better CSS will be added to the buttons at a later date