Deprecate the "wall uploads" photo album. Photo uploads (from any source) with no album specified will go now into an album based on YYYY-MM.

This commit is contained in:
friendica 2015-03-04 18:55:17 -08:00
parent ad3b4da3ff
commit 76eb0a7e56
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ function photo_upload($channel, $observer, $args) {
if($newalbum)
$album = $newalbum;
else
$album = datetime_convert('UTC',date_default_timezone_get(),'now', 'Y');
$album = datetime_convert('UTC',date_default_timezone_get(),'now', 'Y-m');
}
/**

View File

@ -32,8 +32,7 @@ function wall_upload_post(&$a) {
$observer = $a->get_observer();
$args = array( 'source' => 'editor', 'album' => t('Wall Photos'),
'not_visible' => 1, 'contact_allow' => array($channel['channel_hash']));
$args = array( 'source' => 'editor', 'not_visible' => 1, 'contact_allow' => array($channel['channel_hash']));
$ret = photo_upload($channel,$observer,$args);