Fixed post relations wiped out on mass tag
This commit is contained in:
parent
26eda78745
commit
58b7a3ac6b
1 changed files with 5 additions and 3 deletions
|
@ -21,11 +21,13 @@ class PostEditFormData implements IValidatable
|
|||
if ($inputReader !== null)
|
||||
{
|
||||
$this->content = $inputReader->decodeBase64($inputReader->content);
|
||||
$this->thumbnail = $inputReader->decodebase64($inputReader->thumbnail);
|
||||
$this->thumbnail = $inputReader->decodeBase64($inputReader->thumbnail);
|
||||
if ($inputReader->safety)
|
||||
$this->safety = EnumHelper::postSafetyFromString($inputReader->safety);
|
||||
if ($inputReader->source !== null)
|
||||
$this->source = $inputReader->source;
|
||||
$this->tags = preg_split('/[\s+]/', $inputReader->tags);
|
||||
if ($inputReader->relations !== null)
|
||||
$this->relations = array_filter(preg_split('/[\s+]/', $inputReader->relations));
|
||||
$this->seenEditTime = $inputReader->seenEditTime;
|
||||
$this->flags = new \StdClass;
|
||||
|
|
Loading…
Reference in a new issue