mostly doc tweaks, some import/export work
This commit is contained in:
parent
b4cbb3aeb1
commit
039f56f390
@ -14,6 +14,7 @@ We need much more than this, but here are areas where developers can help. Pleas
|
|||||||
[li]provide a way for xchans with a certain network type to upgrade (unknown to rss, rss to statusnet, friendica-over-diaspora to friendica, for instance) based on new knowledge and/or redmatrix ability[/li]
|
[li]provide a way for xchans with a certain network type to upgrade (unknown to rss, rss to statusnet, friendica-over-diaspora to friendica, for instance) based on new knowledge and/or redmatrix ability[/li]
|
||||||
[li](done - HZ) If DAV folders exist, add an option to the Settings page to set a default folder for attachment uploads.[/li]
|
[li](done - HZ) If DAV folders exist, add an option to the Settings page to set a default folder for attachment uploads.[/li]
|
||||||
[li]Integrate the "open site" list with the register page[/li]
|
[li]Integrate the "open site" list with the register page[/li]
|
||||||
|
[li]Support comments and member notes on documentation pages (to achieve an effect similar to php.net)[/li]
|
||||||
[li]implement oembed provider interface[/li]
|
[li]implement oembed provider interface[/li]
|
||||||
[li]refactor the oembed client interface so that we can safely sandbox remote content[/li]
|
[li]refactor the oembed client interface so that we can safely sandbox remote content[/li]
|
||||||
[li]Many modern social apps now have both a profile photo and a "cover photo". Add support for this. [/li]
|
[li]Many modern social apps now have both a profile photo and a "cover photo". Add support for this. [/li]
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
[b]Documentation To-Do List[/b]
|
|
||||||
|
|
||||||
[b]Documentation we need to write[/b]
|
|
||||||
|
|
||||||
Database schema detailed descriptions
|
|
||||||
|
|
||||||
Complete plugin hook documentation
|
|
||||||
|
|
||||||
API documentation
|
|
||||||
|
|
||||||
Function and code documentation (doxygen)
|
|
||||||
|
|
||||||
New Member guide
|
|
||||||
|
|
||||||
"Extra Feature" reference, description of each
|
|
||||||
|
|
||||||
Detailed Personal Settings Documentation
|
|
||||||
|
|
||||||
Administration Guide (post-install)
|
|
||||||
|
|
||||||
Administration Guide (pre-install)
|
|
||||||
|
|
||||||
Return to the [url=[baseurl]/help/main]Main documentation page[/url]
|
|
@ -565,7 +565,7 @@ function identity_basic_export($channel_id, $items = false) {
|
|||||||
if(! $items)
|
if(! $items)
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
$r = q("select likes.*, item.mid from likes left join item on likes.iid = item.id where likes.channel_id = %d",
|
$r = q("select * from likes where channel_id = %d",
|
||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -447,7 +447,7 @@ function import_post(&$a) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// FIXME - ensure we have an xchan if somebody is trying to pull a fast one
|
// FIXME - ensure we have an xchan if somebody is trying to pull a fast one
|
||||||
|
|
||||||
if($completed < 8) {
|
if($completed < 8) {
|
||||||
$friends = 0;
|
$friends = 0;
|
||||||
@ -556,6 +556,23 @@ function import_post(&$a) {
|
|||||||
ref_session_write(session_id(), serialize($_SESSION));
|
ref_session_write(session_id(), serialize($_SESSION));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$objs = $data['obj'];
|
||||||
|
if($objs) {
|
||||||
|
foreach($objs as $obj) {
|
||||||
|
unset($obj['obj_id']);
|
||||||
|
$obj['channel'] = $channel['channel_id'];
|
||||||
|
|
||||||
|
dbesc_array($obj);
|
||||||
|
$r = dbq("INSERT INTO obj (`"
|
||||||
|
. implode("`, `", array_keys($obj))
|
||||||
|
. "`) VALUES ('"
|
||||||
|
. implode("', '", array_values($obj))
|
||||||
|
. "')" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$saved_notification_flags = notifications_off($channel['channel_id']);
|
$saved_notification_flags = notifications_off($channel['channel_id']);
|
||||||
|
|
||||||
if($import_posts && array_key_exists('item',$data) && $data['item']) {
|
if($import_posts && array_key_exists('item',$data) && $data['item']) {
|
||||||
@ -614,7 +631,7 @@ function import_post(&$a) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// FIXME - ensure we have a self entry if somebody is trying to pull a fast one
|
// FIXME - ensure we have a self entry if somebody is trying to pull a fast one
|
||||||
|
|
||||||
// send out refresh requests
|
// send out refresh requests
|
||||||
// notify old server that it may no longer be primary.
|
// notify old server that it may no longer be primary.
|
||||||
|
@ -486,9 +486,9 @@ function like_content(&$a) {
|
|||||||
dbesc($ch[0]['channel_hash']),
|
dbesc($ch[0]['channel_hash']),
|
||||||
intval($post_id),
|
intval($post_id),
|
||||||
dbesc($activity),
|
dbesc($activity),
|
||||||
dbesc(($tgttype)?$tgttype:$objtype),
|
dbesc(($tgttype)? $tgttype : $objtype),
|
||||||
dbesc($obj_id),
|
dbesc($obj_id),
|
||||||
dbesc(json_encode(($target)?$target:$object))
|
dbesc(($target) ? $target : $object)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user