π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix instagram permission from impressions to views, fix md remover mess up the message
Nevo David7725c1ce71c6
diff --git a/apps/frontend/src/components/launches/helpers/use.formatting.ts b/apps/frontend/src/components/launches/helpers/use.formatting.tsindex 8c2e71a15..f2c1a8ad0 100644--- a/apps/frontend/src/components/launches/helpers/use.formatting.ts+++ b/apps/frontend/src/components/launches/helpers/use.formatting.ts@@ -1,4 +1,3 @@-import removeMd from 'remove-markdown';import { useMemo } from 'react';export const useFormatting = (@@ -23,9 +22,6 @@ export const useFormatting = (if (params.saveBreaklines) {newText = newText.replace('\n', 'π«π’π΄π©π¦π«π’');}- if (params.removeMarkdown) {- newText = removeMd(newText);- }newText = newText.replace(/@\w{1,15}/g, function(match) {return `<strong>${match}</strong>`;});diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.tsindex c548a7755..63d6af13e 100644--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts@@ -384,13 +384,13 @@ export class InstagramProviderconst { data, ...all } = await (await this.fetch(- `https://graph.facebook.com/v20.0/${id}/insights?metric=follower_count,impressions,reach&access_token=${accessToken}&period=day&since=${since}&until=${until}`+ `https://graph.facebook.com/v20.0/${id}/insights?metric=follower_count,reach&access_token=${accessToken}&period=day&since=${since}&until=${until}`)).json();const { data: data2, ...all2 } = await (await this.fetch(- `https://graph.facebook.com/v20.0/${id}/insights?metric_type=total_value&metric=likes,comments,shares,saves,replies&access_token=${accessToken}&period=day&since=${since}&until=${until}`+ `https://graph.facebook.com/v20.0/${id}/insights?metric_type=total_value&metric=likes,views,comments,shares,saves,replies&access_token=${accessToken}&period=day&since=${since}&until=${until}`)).json();const analytics = [];diff --git a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts b/libraries/nestjs-libraries/src/integrations/social/x.provider.tsindex 0f9ce41c1..822943a4f 100644--- a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/x.provider.ts@@ -145,10 +145,7 @@ export class XProvider extends SocialAbstract implements SocialProvider {await timer(2000);await client.v2.tweet({- text: removeMd(fields.post.replace('\n', 'π«π’π΄π©π¦π«π’')).replace(- 'π«π’π΄π©π¦π«π’',- '\n'- ),+ text: fields.post,reply: { in_reply_to_tweet_id: id },});return true;@@ -297,10 +294,7 @@ export class XProvider extends SocialAbstract implements SocialProvider {// @ts-ignoreconst { data }: { data: { id: string } } = await client.v2.tweet({- text: removeMd(post.message.replace('\n', 'π«π’π΄π©π¦π«π’')).replace(- 'π«π’π΄π©π¦π«π’',- '\n'- ),+ text: post.message,...(media_ids.length ? { media: { media_ids } } : {}),...(ids.length? { reply: { in_reply_to_tweet_id: ids[ids.length - 1].postId } }