From: joshuaruesweg Date: Wed, 10 Mar 2021 13:50:45 +0000 (+0100) Subject: Use 160 chars for url description X-Git-Tag: 5.4.0_Alpha_1~146^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f2eb25865e62ba46efb5f389485cc082f1471e0;p=GitHub%2FWoltLab%2FWCF.git Use 160 chars for url description --- 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 = [];