From 2f2eb25865e62ba46efb5f389485cc082f1471e0 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Wed, 10 Mar 2021 14:50:45 +0100 Subject: [PATCH] Use 160 chars for url description --- .../lib/system/background/job/UnfurlUrlBackgroundJob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index 2e4e968586..ba53e97b48 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -78,7 +78,7 @@ final class UnfurlUrlBackgroundJob extends AbstractBackgroundJob $title = StringUtil::truncate($unfurlResponse->getTitle(), 255); $description = ""; if ($unfurlResponse->getDescription()) { - $description = StringUtil::truncate($unfurlResponse->getDescription()); + $description = StringUtil::truncate($unfurlResponse->getDescription(), 160); } $imageData = []; -- 2.20.1