Custom Post Ranking in community feed and user feed

I would like to know if queryCommunityPosts and queryUserPosts has the Custom Post Ranking option and how to make it work, since I could only use it in queryAllPosts using the useCustomRanking property,

const FeedQueryTypes = {
    [PostTargetType.GlobalFeed]: queryAllPosts.bind(this, {
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.CommunityFeed]: queryCommunityPosts.bind(this, {
      communityId: targetId,
      feedType,
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.UserFeed]: queryUserPosts.bind(this, {
      userId: targetId,
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.MyFeed]: queryMyPosts.bind(this, {
      useCustomRanking: isMostPopular,
    }),
  };

Hello, I would like to confirm whether you are referring to the custom post ranking here: Custom Post Ranking - Amity Docs ? If this is the case, please note that this feature applies only to the global feed.

For community and user feeds, the available option is the “sortBy” which you can find details about here: Query Post - Amity Docs

1 Like