From 2fe2118a7cacf7d0aa8338ba3180a00b2098e7de Mon Sep 17 00:00:00 2001 From: Nevo David Date: Tue, 3 Sep 2024 20:58:48 +0700 Subject: [PATCH 1/4] feat: join discord --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index cfed2253..576b4824 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,5 @@ name: "🐛 Bug Report" -description: "Submit a bug report to help us improve" +description: "Submit a bug report to help us improve, if you have a problem installing the app please join our [Discord](https://discord.postiz.com) instead for help." title: "🐛 Bug Report: " labels: ["type: bug"] body: From 478829b44cec1b77b4d0a862614339976cb0f292 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Tue, 3 Sep 2024 20:59:57 +0700 Subject: [PATCH 2/4] feat: new line --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 576b4824..ffd4b7ac 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,5 @@ name: "🐛 Bug Report" -description: "Submit a bug report to help us improve, if you have a problem installing the app please join our [Discord](https://discord.postiz.com) instead for help." +description: "Submit a bug report to help us improve,\nif you have a problem installing the app please join our https://discord.postiz.com instead for help." title: "🐛 Bug Report: " labels: ["type: bug"] body: From fb22ffd5ed206434315260e9dd33a69657f0d8d7 Mon Sep 17 00:00:00 2001 From: "mike.michel" Date: Tue, 3 Sep 2024 15:10:16 +0200 Subject: [PATCH 3/4] fix reddit title --- .../integrations/social/reddit.provider.ts | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts index 7cd21e6c..fc76de1e 100644 --- a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts +++ b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts @@ -124,6 +124,34 @@ export class RedditProvider extends SocialAbstract implements SocialProvider { const valueArray: PostResponse[] = []; for (const firstPostSettings of post.settings.subreddit) { + const postData = { + api_type: 'json', + title: firstPostSettings.value.title || '', + kind: + firstPostSettings.value.type === 'media' + ? 'image' + : firstPostSettings.value.type, + ...(firstPostSettings.value.flair + ? { flair_id: firstPostSettings.value.flair.id } + : {}), + ...(firstPostSettings.value.type === 'link' + ? { + url: firstPostSettings.value.url, + } + : {}), + ...(firstPostSettings.value.type === 'media' + ? { + url: `${ + firstPostSettings.value.media[0].path.indexOf('http') === -1 + ? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${process.env.NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY}` + : `` + }${firstPostSettings.value.media[0].path}`, + } + : {}), + text: post.message, + sr: firstPostSettings.value.subreddit, + }; + const { json: { data: { id, name, url }, @@ -135,33 +163,7 @@ export class RedditProvider extends SocialAbstract implements SocialProvider { Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/x-www-form-urlencoded', }, - body: new URLSearchParams({ - api_type: 'json', - title: firstPostSettings.value.type, - kind: - firstPostSettings.value.type === 'media' - ? 'image' - : firstPostSettings.value.type, - ...(firstPostSettings.value.flair - ? { flair_id: firstPostSettings.value.flair.id } - : {}), - ...(firstPostSettings.value.type === 'link' - ? { - url: firstPostSettings.value.url, - } - : {}), - ...(firstPostSettings.value.type === 'media' - ? { - url: `${ - firstPostSettings.value.media[0].path.indexOf('http') === -1 - ? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${process.env.NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY}` - : `` - }${firstPostSettings.value.media[0].path}`, - } - : {}), - text: post.message, - sr: firstPostSettings.value.subreddit, - }), + body: new URLSearchParams(postData), }) ).json(); From 395fe38b6184ce0ee2908cf49d1676f79e2b4906 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Wed, 4 Sep 2024 23:46:13 +0700 Subject: [PATCH 4/4] feat: polotno --- .env.example | 3 ++- apps/frontend/src/components/launches/polonto.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7fbeb6e3..f99babb4 100644 --- a/.env.example +++ b/.env.example @@ -45,4 +45,5 @@ PINTEREST_CLIENT_ID="" PINTEREST_CLIENT_SECRET="" DRIBBBLE_CLIENT_ID="" DRIBBBLE_CLIENT_SECRET="" -IS_GENERAL="true" \ No newline at end of file +IS_GENERAL="true" +NEXT_PUBLIC_POLOTNO="Polotno key for the gallery" \ No newline at end of file diff --git a/apps/frontend/src/components/launches/polonto.tsx b/apps/frontend/src/components/launches/polonto.tsx index bb0e61a7..d80eb48d 100644 --- a/apps/frontend/src/components/launches/polonto.tsx +++ b/apps/frontend/src/components/launches/polonto.tsx @@ -19,7 +19,7 @@ import { PictureGeneratorSection } from '@gitroom/frontend/components/launches/p import { useUser } from '@gitroom/frontend/components/layout/user.context'; const store = createStore({ - key: 'Aqml_02mqf6YTKC0jYZ8', + key: process.env.NEXT_PUBLIC_POLOTNO!, showCredit: false, });