mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Removed unneeded parameter
This commit is contained in:
parent
7315048474
commit
7e322c21b3
7 changed files with 9 additions and 12 deletions
|
@ -118,7 +118,7 @@ class Notify extends BaseEntity
|
|||
public function updateMsgFromPreamble($epreamble)
|
||||
{
|
||||
$this->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $this->link->__toString()]);
|
||||
$this->msg_cache = self::formatMessage($this->name_cache, BBCode::toPlaintext($this->msg, false, true));
|
||||
$this->msg_cache = self::formatMessage($this->name_cache, BBCode::toPlaintext($this->msg, false));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -134,6 +134,6 @@ class Notify extends BaseEntity
|
|||
*/
|
||||
public static function formatMessage(string $name, string $message): string
|
||||
{
|
||||
return str_replace('{0}', '<span class="contactname">' . BBCode::toPlaintext($name, false, true) . '</span>', htmlspecialchars($message));
|
||||
return str_replace('{0}', '<span class="contactname">' . BBCode::toPlaintext($name, false) . '</span>', htmlspecialchars($message));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -222,7 +222,7 @@ class FormattedNotify extends BaseFactory
|
|||
$this->baseUrl . '/notify/' . $Notify->id,
|
||||
Contact::getAvatarUrlForUrl($Notify->url, $Notify->uid, Proxy::SIZE_MICRO),
|
||||
$Notify->url,
|
||||
BBCode::toPlaintext($Notify->msg ?? '', false, true),
|
||||
BBCode::toPlaintext($Notify->msg ?? '', false),
|
||||
DateTimeFormat::local($Notify->date->format(DateTimeFormat::MYSQL), 'r'),
|
||||
Temporal::getRelativeDate($Notify->date->format(DateTimeFormat::MYSQL)),
|
||||
$Notify->seen
|
||||
|
|
|
@ -68,7 +68,7 @@ class Notify extends BaseFactory implements ICanCreateFromTableRow
|
|||
false,
|
||||
$params['verb'] ?? '',
|
||||
$params['otype'] ?? '',
|
||||
substr(BBCode::toPlaintext($params['source_name'], false, true), 0, 255),
|
||||
substr(BBCode::toPlaintext($params['source_name'], false), 0, 255),
|
||||
null,
|
||||
null,
|
||||
$item_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue