Skip to content

Commit 4d95bbe

Browse files
committed
feat: facebook comments should be reversed
1 parent b33b3c3 commit 4d95bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/nestjs-libraries/src/integrations/social/facebook.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class FacebookProvider extends SocialAbstract implements SocialProvider {
254254
}
255255

256256
const postsArray = [];
257-
for (const comment of comments) {
257+
for (const comment of comments.reverse()) {
258258
const data = await (
259259
await this.fetch(
260260
`https://graph.facebook.com/v20.0/${finalId}/comments?access_token=${accessToken}&fields=id,permalink_url`,

0 commit comments

Comments
 (0)