Don't automatically post hashtags when sharing links
authorMichael <heluecht@pirati.ca>
Wed, 24 Mar 2021 19:49:20 +0000 (19:49 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 24 Mar 2021 19:49:20 +0000 (19:49 +0000)
mod/item.php

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