Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion for-developers/backend/blockchain-data/api/post-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ if true, only return posts that have images, videos, or embed video URLs.
{% swagger-description %}
Get Hot Feed returns a page of Posts that are currently "hot". A post's hotness is determined by the time since the post was created and the number of likes, diamonds, comments, reposts, and quote reposts.

Endpoint implementation in [backend](https://github.com/deso-protocol/backend/blob/709cbfbc62cf3a0e6d56c393e555fc277c93fb76/routes/hot\_feed.go#L605).
Endpoint implementation in [backend](https://github.com/deso-protocol/backend/blob/main/routes/hot_feed.go#L943).

Example usages in [diamondapp.com](https://diamondapp.com)'s frontend:\
  \- Make request to [Get Hot Feed](https://github.com/diamond-app/frontend/blob/735634e38dfa0605035ded19b46b92766ec856c4/src/app/backend-api.service.ts#L1153)\
Expand All @@ -291,6 +291,14 @@ A list of posts that have already been seen by the reader
Number of posts to fetch
{% endswagger-parameter %}

{% swagger-parameter in="body" name="Tag" type="String" %}
If defined, only get the hot feed for posts tagged with this tag.
{% endswagger-parameter %}

{% swagger-parameter in="body" name="SortByNew" type="bool" %}
If true, sort by new instead of by hotness. Only applies to queries where "Tag" is defined.
{% endswagger-parameter %}

{% swagger-response status="200: OK" description="Successfully retrieved posts from the hot feed" %}
{% tabs %}
{% tab title="Sample Response" %}
Expand Down