mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
diaspora structures
This commit is contained in:
parent
d45a66e700
commit
639204c2ec
10 changed files with 92 additions and 3 deletions
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once("include/pgettext.php");
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.2.1061' );
|
define ( 'FRIENDIKA_VERSION', '2.2.1061' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1076 );
|
define ( 'DB_UPDATE_VERSION', 1077 );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
|
|
@ -573,3 +573,9 @@ CREATE TABLE IF NOT EXISTS `attach` (
|
||||||
`deny_gid` MEDIUMTEXT NOT NULL
|
`deny_gid` MEDIUMTEXT NOT NULL
|
||||||
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `guid` (
|
||||||
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`guid` CHAR( 16 ) NOT NULL ,
|
||||||
|
INDEX ( `guid` )
|
||||||
|
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
11
update.php
11
update.php
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1076 );
|
define( 'UPDATE_VERSION' , 1077 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -623,4 +623,11 @@ function update_1075() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1076() {
|
||||||
|
q("CREATE TABLE ``guid` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`guid` CHAR( 16 ) NOT NULL , INDEX ( `guid` ) ) ENGINE = MYISAM ");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
11
view/diaspora_comment.tpl
Normal file
11
view/diaspora_comment.tpl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<comment>
|
||||||
|
<guid>$guid</guid>
|
||||||
|
<parent_guid>$parent_guid</parent_guid>
|
||||||
|
<author_signature>$authorsig</author_signature>
|
||||||
|
<text>$body</text>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
</comment>
|
||||||
|
</post>
|
||||||
|
</XML>
|
12
view/diaspora_comment_relay.tpl
Normal file
12
view/diaspora_comment_relay.tpl
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<comment>
|
||||||
|
<guid>$guid</guid>
|
||||||
|
<parent_guid>$parent_guid</parent_guid>
|
||||||
|
<parent_author_signature>$parentsig</parent_author_signature>
|
||||||
|
<author_signature>$authorsig</author_signature>
|
||||||
|
<text>$body</text>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
</comment>
|
||||||
|
</post>
|
||||||
|
</XML>
|
12
view/diaspora_like.tpl
Normal file
12
view/diaspora_like.tpl
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<like>
|
||||||
|
<target_type>$type</target_type>
|
||||||
|
<guid>$guid</guid>
|
||||||
|
<parent_guid>$parent_guid</parent_guid>
|
||||||
|
<author_signature>$authorsig</author_signature>
|
||||||
|
<positive>$positive</positive>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
</like>
|
||||||
|
</post>
|
||||||
|
</XML>
|
13
view/diaspora_like_relay.tpl
Normal file
13
view/diaspora_like_relay.tpl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<like>
|
||||||
|
<guid>$guid</guid>
|
||||||
|
<target_type>$type</target_type>
|
||||||
|
<parent_guid>$parent_guid</parent_guid>
|
||||||
|
<parent_author_signature>$parentsig</parent_author_signature>
|
||||||
|
<author_signature>$authrosig</author_signature>
|
||||||
|
<positive>$positive</positive>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
</like>
|
||||||
|
</post>
|
||||||
|
</XML>
|
11
view/diaspora_post.tpl
Normal file
11
view/diaspora_post.tpl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<status_message>
|
||||||
|
<raw_message>$body</raw_message>
|
||||||
|
<guid>$guid</guid>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
<public>$public</public>
|
||||||
|
<created_at>$created</created_at>
|
||||||
|
</status_message>
|
||||||
|
</post>
|
||||||
|
</XML>
|
9
view/diaspora_retract.tpl
Normal file
9
view/diaspora_retract.tpl
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<retraction>
|
||||||
|
<post_guid>$guid</post_guid>
|
||||||
|
<type>$type</type>
|
||||||
|
<diaspora_handle>$handle</diaspora_handle>
|
||||||
|
</retraction>
|
||||||
|
</post>
|
||||||
|
</XML>
|
8
view/diaspora_share.tpl
Normal file
8
view/diaspora_share.tpl
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<XML>
|
||||||
|
<post>
|
||||||
|
<request>
|
||||||
|
<sender_handle>$sender</sender_handle>
|
||||||
|
<recipient_handle>$recipient</recipient_handle>
|
||||||
|
</request>
|
||||||
|
</post>
|
||||||
|
</XML>
|
Loading…
Reference in a new issue