Bugfix: Signatures for likes hadn't been stored

This commit is contained in:
Michael 2017-07-15 04:03:50 +00:00
parent 86934119b1
commit 2bad626be6
5 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_CODENAME', 'Asparagus');
define ( 'FRIENDICA_VERSION', '3.5.3-dev' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1232 );
define ( 'DB_UPDATE_VERSION', 1233 );
/**
* @brief Constant with a HTML line break.

View file

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 3.5.3-dev (Asparagus)
-- DB_UPDATE_VERSION 1231
-- DB_UPDATE_VERSION 1233
-- ------------------------------------------
@ -944,7 +944,7 @@ CREATE TABLE IF NOT EXISTS `sign` (
`signature` text,
`signer` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY(`id`),
INDEX `iid` (`iid`)
UNIQUE INDEX `iid` (`iid`)
) DEFAULT COLLATE utf8mb4_general_ci;
--

View file

@ -1572,7 +1572,7 @@ function db_definition() {
),
"indexes" => array(
"PRIMARY" => array("id"),
"iid" => array("iid"),
"iid" => array("UNIQUE", "iid"),
)
);
$database["spam"] = array(

View file

@ -3729,7 +3729,7 @@ class Diaspora {
* This will break Diaspora compatibility with Friendica versions prior to 3.5.
*/
q("INSERT INTO `sign` (`iid`,`signed_text`) VALUES (%d,'%s')",
intval($message_id),
intval($post_id),
dbesc(json_encode($message))
);

View file

@ -1,6 +1,6 @@
<?php
define('UPDATE_VERSION' , 1232);
define('UPDATE_VERSION' , 1233);
/**
*