]> git.mxchange.org Git - friendica.git/commitdiff
Replace author name by server host in Ignore Server labels
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 24 Aug 2023 13:29:15 +0000 (09:29 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 25 Aug 2023 13:30:51 +0000 (09:30 -0400)
src/Content/Item.php
src/Object/Post.php

index f2b4d9600b7cc3e732aa981d57960555c18d0407..163db89aa472c6b698cffb5ca92d244d9d7b4b4f 100644 (file)
@@ -435,7 +435,7 @@ class Item
                                $this->l10n->t('Block') => $block_link,
                                $this->l10n->t('Ignore') => $ignore_link,
                                $this->l10n->t('Collapse') => $collapse_link,
-                               $this->l10n->t("Ignore %s's server", $item['author-name']) => $ignoreserver_link,
+                               $this->l10n->t("Ignore %s server", $authorBaseUri->getHost()) => $ignoreserver_link,
                        ];
 
                        if (!empty($item['language'])) {
index 565dc0d10df89f48c8d4581e9f5eb598ee9954c7..dd3074cfa32a0e06d4ac785b35e4b10c5f93cc03 100644 (file)
@@ -285,7 +285,7 @@ class Post
                        $authorBaseUri = new Uri($item['author-baseurl'] ?? '');
                        if ($authorBaseUri->getHost() && !DI::baseUrl()->isLocalUrl($authorBaseUri)) {
                                $ignoreServer = [
-                                       'label' => DI::l10n()->t("Ignore %s's server", $item['author-name']),
+                                       'label' => DI::l10n()->t("Ignore %s server", $authorBaseUri->getHost()),
                                ];
                        }
                }