add: questions api endpoints
This commit is contained in:
parent
b29760d7ec
commit
d128b2c438
5 changed files with 321 additions and 4 deletions
|
@ -668,7 +668,10 @@ pub async fn from_communities_request(
|
|||
None => return Json(Error::NotAllowed.into()),
|
||||
};
|
||||
|
||||
match data.get_popular_posts(12, props.page, 604_800_000).await {
|
||||
match data
|
||||
.get_posts_from_user_communities(user.id, 12, props.page)
|
||||
.await
|
||||
{
|
||||
Ok(posts) => {
|
||||
let ignore_users = crate::ignore_users_gen!(user!, #data);
|
||||
Json(ApiReturn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue