Browse Source

Bugfix: Signatures for likes hadn't been stored

pull/3585/head
Michael 4 years ago
parent
commit
2bad626be6
5 changed files with 6 additions and 6 deletions
  1. +1
    -1
      boot.php
  2. +2
    -2
      database.sql
  3. +1
    -1
      include/dbstructure.php
  4. +1
    -1
      include/diaspora.php
  5. +1
    -1
      update.php

+ 1
- 1
boot.php 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.


+ 2
- 2
database.sql 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;
--


+ 1
- 1
include/dbstructure.php View File

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


+ 1
- 1
include/diaspora.php 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))
);


+ 1
- 1
update.php View File

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


Loading…
Cancel
Save