|
|
|
@ -164,8 +164,10 @@ class ArticleController extends AbstractController |
|
|
|
if ($article->getPubkey() === null) { |
|
|
|
if ($article->getPubkey() === null) { |
|
|
|
$user = $this->getUser(); |
|
|
|
$user = $this->getUser(); |
|
|
|
$key = new Key(); |
|
|
|
$key = new Key(); |
|
|
|
$currentPubkey = $key->convertToHex($user->getUserIdentifier()); |
|
|
|
if (!!$user) { |
|
|
|
$article->setPubkey($currentPubkey); |
|
|
|
$currentPubkey = $key->convertToHex($user->getUserIdentifier()); |
|
|
|
|
|
|
|
$article->setPubkey($currentPubkey); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$form = $this->createForm(EditorType::class, $article, ['action' => $formAction]); |
|
|
|
$form = $this->createForm(EditorType::class, $article, ['action' => $formAction]); |
|
|
|
|