]> git.mxchange.org Git - friendica.git/commitdiff
Ignore identical provider and author
authorMichael <heluecht@pirati.ca>
Tue, 4 May 2021 06:08:40 +0000 (06:08 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 4 May 2021 06:08:40 +0000 (06:08 +0000)
src/Model/Item.php

index 2e7eb66707b2f0af2a7af48cfb2795953dc42615..e93708bfd29d469416c749ad9238f63ef2d3fe35 100644 (file)
@@ -2909,6 +2909,14 @@ class Item
                        if (!empty($data['description']) && (($data['title'] == $data['description']) || ($percent > 95) || (strpos($content, $data['description']) !== false))) {
                                $data['description'] = '';
                        }
+
+                       if (!empty($data['author_name']) && !empty($data['provider_name'])) {
+                               $data['author_name'] = '';
+                       }
+
+                       if (!empty($data['author_url']) && !empty($data['provider_url'])) {
+                               $data['author_url'] = '';
+                       }
                } elseif (preg_match("/.*(\[attachment.*?\].*?\[\/attachment\]).*/ism", $body, $match)) {
                        $data = BBCode::getAttachmentData($match[1]);
                }