Merge branch 'master' of https://github.com/friendica/red
This commit is contained in:
commit
71fb7f3edf
10
mod/item.php
10
mod/item.php
@ -412,12 +412,18 @@ function item_post(&$a) {
|
||||
* now. So now we'll look for links of uploaded photos and attachments that are in the
|
||||
* post and set them to the same permissions as the post itself.
|
||||
*
|
||||
* If the post was end-to-end encrypted we can't find images and attachments in the body,
|
||||
* use our media_str input instead which only contains these elements - but only do this
|
||||
* when encrypted content exists because the photo/attachment may have been removed from
|
||||
* the post and we should keep it private. If it's encrypted we have no way of knowing
|
||||
* so we'll set the permissions regardless and realise that the media may not be
|
||||
* referenced in the post.
|
||||
*/
|
||||
|
||||
if(! $preview) {
|
||||
fix_attached_photo_permissions($profile_uid,$owner_xchan['xchan_hash'],$body,$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny);
|
||||
fix_attached_photo_permissions($profile_uid,$owner_xchan['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny);
|
||||
|
||||
fix_attached_file_permissions($channel,$observer['xchan_hash'],$body,$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny);
|
||||
fix_attached_file_permissions($channel,$observer['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny);
|
||||
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2013-11-12.495
|
||||
2013-11-13.496
|
||||
|
@ -120,6 +120,7 @@ function enableOnUser(){
|
||||
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||
onComplete: function(file,response) {
|
||||
addeditortext(response);
|
||||
$('#jot-media').val($('#jot-media').val() + response);
|
||||
$('#profile-rotator').spin(false);
|
||||
}
|
||||
}
|
||||
@ -131,6 +132,7 @@ function enableOnUser(){
|
||||
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||
onComplete: function(file,response) {
|
||||
addeditortext(response);
|
||||
$('#jot-media').val($('#jot-media').val() + response);
|
||||
$('#profile-rotator').spin(false);
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
<input type="hidden" name="return" value="{{$return_path}}" />
|
||||
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
|
||||
<input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" />
|
||||
<input type="hidden" name="media_str" id="jot-media" value="" />
|
||||
<input type="hidden" name="coord" id="jot-coord" value="" />
|
||||
<input type="hidden" name="post_id" value="{{$post_id}}" />
|
||||
<input type="hidden" name="webpage" value="{{$webpage}}" />
|
||||
|
Reference in New Issue
Block a user