diff --git a/src/Model/Contact.php b/src/Model/Contact.php
index 3ca84515a9..17be0b0cfd 100644
--- a/src/Model/Contact.php
+++ b/src/Model/Contact.php
@@ -799,7 +799,7 @@ class Contact
return false;
}
- $fields = ['uid', 'nickname', 'page-flags', 'account-type', 'prvkey', 'pubkey'];
+ $fields = ['uid', 'username', 'nickname', 'page-flags', 'account-type', 'prvkey', 'pubkey'];
$user = DBA::selectFirst('user', $fields, ['uid' => $uid, 'account_expired' => false]);
if (!DBA::isResult($user)) {
return false;
@@ -818,7 +818,7 @@ class Contact
$url = DI::baseUrl() . '/profile/' . $user['nickname'];
$fields = [
- 'name' => $profile['name'],
+ 'name' => $user['username'],
'nick' => $user['nickname'],
'avatar-date' => $self['avatar-date'],
'location' => Profile::formatLocation($profile),
@@ -841,7 +841,6 @@ class Contact
'confirm' => DI::baseUrl() . '/dfrn_confirm/' . $user['nickname'],
];
-
$avatar = Photo::selectFirst(['resource-id', 'type'], ['uid' => $uid, 'profile' => true]);
if (DBA::isResult($avatar)) {
if ($update_avatar) {
diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php
index 120035d557..e54bd577b2 100644
--- a/src/Module/Notifications/Ping.php
+++ b/src/Module/Notifications/Ping.php
@@ -52,6 +52,7 @@ use Friendica\Network\HTTPException;
use Friendica\Protocol\Activity;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Profiler;
+use Friendica\Util\Strings;
use GuzzleHttp\Psr7\Uri;
use Psr\Log\LoggerInterface;
@@ -296,8 +297,8 @@ class Ping extends BaseModule
$data['notifications'] = $navNotifications;
$data['sysmsgs'] = [
- 'notice' => $this->systemMessages->flushNotices(),
- 'info' => $this->systemMessages->flushInfos(),
+ 'notice' => array_map([Strings::class, 'escapeHtml'], $this->systemMessages->flushNotices()),
+ 'info' => array_map([Strings::class, 'escapeHtml'], $this->systemMessages->flushInfos()),
];
if (isset($_GET['callback'])) {
diff --git a/src/Module/Profile/Conversations.php b/src/Module/Profile/Conversations.php
index b53c2d1ab8..cda8f03f9b 100644
--- a/src/Module/Profile/Conversations.php
+++ b/src/Module/Profile/Conversations.php
@@ -103,10 +103,10 @@ class Conversations extends BaseProfile
$this->page['htmlhead'] .= '' . "\n";
}
- $this->page['htmlhead'] .= '' . "\n";
- $this->page['htmlhead'] .= '' . "\n";
- $this->page['htmlhead'] .= '' . "\n";
- $this->page['htmlhead'] .= '' . "\n";
+ $this->page['htmlhead'] .= '' . "\n";
+ $this->page['htmlhead'] .= '' . "\n";
+ $this->page['htmlhead'] .= '' . "\n";
+ $this->page['htmlhead'] .= '' . "\n";
$category = $datequery = $datequery2 = '';