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