shop full
This commit is contained in:
@@ -13,11 +13,13 @@ export function buildFullPostCaption(
|
||||
packages: SelectedPostLink[],
|
||||
projects: SelectedPostLink[],
|
||||
billboards: SelectedPostLink[],
|
||||
lang?: AppLanguage
|
||||
lang?: AppLanguage,
|
||||
shops: SelectedPostLink[] = [],
|
||||
shopProducts: SelectedPostLink[] = []
|
||||
): string {
|
||||
const tagLine = taggedUsers.map((u) => `@${u.user_name}`).join(" ");
|
||||
const linkHeader = buildPostLinkCaptionHeader(
|
||||
[...packages, ...projects, ...billboards],
|
||||
[...packages, ...projects, ...billboards, ...shops, ...shopProducts],
|
||||
lang
|
||||
);
|
||||
return [description.trim(), tagLine, linkHeader].filter(Boolean).join("\n");
|
||||
@@ -29,7 +31,9 @@ export function countPostCaptionLength(
|
||||
packages: SelectedPostLink[],
|
||||
projects: SelectedPostLink[],
|
||||
billboards: SelectedPostLink[],
|
||||
lang?: AppLanguage
|
||||
lang?: AppLanguage,
|
||||
shops: SelectedPostLink[] = [],
|
||||
shopProducts: SelectedPostLink[] = []
|
||||
): number {
|
||||
return buildFullPostCaption(
|
||||
description,
|
||||
@@ -37,6 +41,8 @@ export function countPostCaptionLength(
|
||||
packages,
|
||||
projects,
|
||||
billboards,
|
||||
lang
|
||||
lang,
|
||||
shops,
|
||||
shopProducts
|
||||
).length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user