diff --git a/module/item.js b/module/item.js index 35f205bc..9fbbb961 100644 --- a/module/item.js +++ b/module/item.js @@ -150,7 +150,9 @@ export class RdDItem extends Item { let chatData = duplicate(Misc.data(this)); const properties = this[`_${chatData.type}ChatData`](); chatData["properties"] = properties - + if (this.actor){ + chatData.actor = {id: this.actor.id }; + } //Check if the posted item should have availability/pay buttons chatData.hasPrice = "cout" in chatData.data; chatData.data.cout_deniers = 0; diff --git a/templates/post-item.html b/templates/post-item.html index a569f947..519b8725 100644 --- a/templates/post-item.html +++ b/templates/post-item.html @@ -15,21 +15,21 @@ Quantité: {{postQuantity}} {{/if}} {{#if postPrice}} - Prix: {{postPrice}} Sols
+ Prix: {{postPrice}} Sols {{/if}} - +
{{/if}} - {{#if finalPrice}} Prix Total: {{finalPrice}} Sols
- {{/if}}

{{#if hasPrice}} - Payer + Payer {{/if}}