Added personality to describe reply
This commit is contained in:
parent
3ea09af486
commit
2fbb34e4c7
2 changed files with 13 additions and 2 deletions
|
|
@ -169,12 +169,14 @@ if (is_file($gfile)) {
|
|||
$description = '';
|
||||
$teaser = '';
|
||||
$quote_da = '';
|
||||
$personality = '';
|
||||
$tags = [];
|
||||
if (is_array($json)) {
|
||||
$description = isset($json['description']) ? (string)$json['description'] : '';
|
||||
$teaser = isset($json['teaser']) ? (string)$json['teaser'] : '';
|
||||
$quote_da = isset($json['quote_da']) ? (string)$json['quote_da'] : '';
|
||||
$quote_da = trim($quote_da, "\"“”");
|
||||
$personality = isset($json['personality']) ? (string)$json['personality'] : '';
|
||||
$tags = isset($json['tags']) && is_array($json['tags']) ? $json['tags'] : [];
|
||||
}
|
||||
|
||||
|
|
@ -183,6 +185,7 @@ if (is_file($gfile)) {
|
|||
'description' => $description,
|
||||
'teaser' => $teaser,
|
||||
'quote_da' => $quote_da,
|
||||
'personality' => $personality,
|
||||
'tags' => $tags,
|
||||
'raw_json' => $json_data, // Send original raw data back for reference
|
||||
'log' => $log,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue