mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
Add current user's hovercard to removeme page
- Extract Hovercard generation to Content\Widget
This commit is contained in:
parent
e6855d3125
commit
3a42849759
4 changed files with 78 additions and 33 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module\Settings;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Widget;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
|
@ -128,6 +129,9 @@ class RemoveMe extends BaseSettings
|
|||
'title' => DI::l10n()->t('Remove My Account'),
|
||||
'desc' => DI::l10n()->t('This will completely remove your account. Once this has been done it is not recoverable.'),
|
||||
],
|
||||
|
||||
'$hovercard' => Widget\Hovercard::getHTML(User::getOwnerDataById($this->session->getLocalUserId())),
|
||||
|
||||
'$password' => [$hash, $this->t('Please enter your password for verification:'), null, null, true],
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue