Skip to content
Snippets Groups Projects
Commit 56438b41 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Share generated page (image URL)

parent dfb629dd
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,9 @@ security.manager.enabled: false
#
# ---------------------------------- Duniter4j ---------------------------------
#
# Enable duniter4j plugins
# Enable duniter4j plugin (default: true)
#
# duniter.enabled: false
# duniter.enable: false
#
# Delete then create all indices at startup - /!\ WARNING: DO NOT set to true in production
#
......
......@@ -100,10 +100,11 @@ http.cors.enabled: true
#
# Require explicit names when deleting indices:
#
# rest.destructive_requires_name: true
# action.destructive_requires_name: true
#
# Security to isolate plugin classpath - /!\ WARNING: should be DISABLE for Duniter4j
#
security.manager.enabled: false
#
# ---------------------------------- Duniter4j ---------------------------------
#
......@@ -111,7 +112,7 @@ security.manager.enabled: false
#
# duniter.enable: false
#
# Reset and reload all Duniter4j data at startup - DO SET to true in production
# Delete then create all indices at startup - /!\ WARNING: DO NOT set to true in production
#
# duniter.indices.reload: true
#
......@@ -119,16 +120,16 @@ security.manager.enabled: false
#
duniter.string.analyzer: french
#
# Enabling node blockchain synchronization
# Enabling blockchain synchronization (default: false)
#
duniter.blockchain.enable: false
#
# Duniter node to synchronizePeer
# Duniter node address
#
duniter.host: g1-test.duniter.org
duniter.port: 10900
#
# ---------------------------------- Duniter4j security -------------------------
# ---------------------------------- Duniter4j security module -------------------
#
duniter.keyring.salt: abc
duniter.keyring.password: def
......
......@@ -83,7 +83,7 @@ public class RestUserShareLinkAction extends AbstractRestShareLinkAction impleme
if (profile.getAvatar() != null && StringUtils.isNotBlank(profile.getAvatar().getContentType())) {
String baseUrl = pluginSettings.getClusterRemoteUrlOrNull();
data.image = StringUtils.isBlank(baseUrl) ? "" : baseUrl;
data.image += RestImageAttachmentAction.computeImageUrl(UserService.INDEX, UserService.PROFILE_TYPE, pubkeyMessage, UserProfile.PROPERTY_AVATAR, profile.getAvatar().getContentType());
data.image += RestImageAttachmentAction.computeImageUrl(UserService.INDEX, UserService.PROFILE_TYPE, id, UserProfile.PROPERTY_AVATAR, profile.getAvatar().getContentType());
data.imageHeight = 200; // min size for Facebook
data.imageWidth = 200;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment