mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
clear comment storage when comment is cleared, change tactic to identify implied Create activities
This commit is contained in:
parent
0efbe817db
commit
6e919ca52c
3 changed files with 6 additions and 3 deletions
|
@ -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) {
|
||||
|
|
2
boot.php
2
boot.php
|
@ -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 );
|
||||
|
|
|
@ -172,6 +172,7 @@ function getSelectedText() {
|
|||
|
||||
function commentCancel(commentId) {
|
||||
$("#comment-edit-text-" + commentId).val('');
|
||||
localStorage.removeItem("comment_body-" + commentId);
|
||||
}
|
||||
|
||||
function handle_comment_form(e) {
|
||||
|
|
Loading…
Reference in a new issue