aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_profile_photo.js
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-02-25 08:36:52 -0500
committerAndrew Manning <tamanning@zoho.com>2018-02-25 08:36:52 -0500
commite3095ce6b2c76f13a852f0ec5f782d71101a7c6a (patch)
treebeab28cbc399ea17e0c2fd6c38724387bafa7c5c /view/js/mod_profile_photo.js
parent70b8f3240f9bc38a41e314f613f6c1bd69f5b430 (diff)
parent673cf8d35e224fcbbc0caef5e638c08bc3914feb (diff)
downloadvolse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.tar.gz
volse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.tar.bz2
volse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.zip
Merge branch 'dev' into oauth2
Diffstat (limited to 'view/js/mod_profile_photo.js')
-rw-r--r--view/js/mod_profile_photo.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/js/mod_profile_photo.js b/view/js/mod_profile_photo.js
index 76b120684..832da764b 100644
--- a/view/js/mod_profile_photo.js
+++ b/view/js/mod_profile_photo.js
@@ -37,7 +37,9 @@
$.post("embedphotos/photolink", {href: href},
function(ddata) {
if (ddata['status']) {
- window.location.href = 'profile_photo/use/' + ddata['resource_id'];
+ var pf = $('#profile-photo-profiles').val();
+ var prof = ((typeof pf !== 'undefined') ? '?f=&pf=' + pf : '');
+ window.location.href = 'profile_photo/use/' + ddata['resource_id'] + prof;
} else {
window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']);
}