Merge pull request #10074 from annando/no-keywords

Don't automatically post hashtags when sharing links
This commit is contained in:
Hypolite Petovan
2021-03-24 16:08:18 -04:00
committed by GitHub

View File

@@ -221,6 +221,7 @@ function item_post(App $a) {
// Fetch the basic attachment data // Fetch the basic attachment data
$attachment = ParseUrl::getSiteinfoCached($attachment_url); $attachment = ParseUrl::getSiteinfoCached($attachment_url);
unset($attachment['keywords']);
// Overwrite the basic data with possible changes from the frontend // Overwrite the basic data with possible changes from the frontend
$attachment['type'] = $attachment_type; $attachment['type'] = $attachment_type;