clear comment storage when comment is cleared, change tactic to identify implied Create activities

This commit is contained in:
zotlabs 2019-12-12 14:17:16 -08:00
parent 0efbe817db
commit 6e919ca52c
3 changed files with 6 additions and 3 deletions

View file

@ -32,7 +32,8 @@ class ActivityStreams {
public $sigok = false;
public $recips = null;
public $raw_recips = null;
public $implied_create = false;
/**
* @brief Constructor for ActivityStreams.
*
@ -115,7 +116,8 @@ class ActivityStreams {
// Implied create activity required by C2S specification if no object is present
if ($client && ! $this->obj) {
if (! $this->obj) {
$this->implied_create = true;
$this->obj = $this->data;
$this->type = 'Create';
if (! $this->actor) {

View file

@ -48,7 +48,7 @@ require_once('include/items.php');
define ( 'STD_VERSION', '19.12.12' );
define ( 'STD_VERSION', '19.12.13' );
define ( 'ZOT_REVISION', '6.0' );
define ( 'DB_UPDATE_VERSION', 1236 );

View file

@ -172,6 +172,7 @@ function getSelectedText() {
function commentCancel(commentId) {
$("#comment-edit-text-" + commentId).val('');
localStorage.removeItem("comment_body-" + commentId);
}
function handle_comment_form(e) {