set permalink on uploaded photo items
This commit is contained in:
parent
2c63b65e3c
commit
c2e35d2d35
2
boot.php
2
boot.php
|
@ -3,7 +3,7 @@
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
ini_set('pcre.backtrack_limit', 250000);
|
ini_set('pcre.backtrack_limit', 250000);
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.1.970' );
|
define ( 'FRIENDIKA_VERSION', '2.1.973' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1054 );
|
define ( 'DB_UPDATE_VERSION', 1054 );
|
||||||
|
|
||||||
|
|
|
@ -639,6 +639,14 @@ foreach($_FILES AS $key => $val) {
|
||||||
|
|
||||||
$item_id = item_store($arr);
|
$item_id = item_store($arr);
|
||||||
|
|
||||||
|
if($item_id) {
|
||||||
|
q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1",
|
||||||
|
dbesc($a->get_baseurl() . '/display/' . $owner_record['nickname'] . '/' . $item_id),
|
||||||
|
intval($page_owner_uid),
|
||||||
|
intval($item_id)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if($visible)
|
if($visible)
|
||||||
proc_run('php', "include/notifier.php", 'wall-new', $item_id);
|
proc_run('php', "include/notifier.php", 'wall-new', $item_id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user