Skip to content

Commit e5dd022

Browse files
committed
Use config.gplus.body
1 parent ad852d2 commit e5dd022

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,19 @@ gDate = gDate.match(/([0-9]{4}-[0-9]{2}-[0-9]{2})/)[1];
8181
scrawl.group = config.group || 'Telecon';
8282
scrawl.people = JSON.parse(peopleJson);
8383

84-
// Mustache template - vars: gDate, formattedItems, content
85-
const GPLUS_BODY = `*JSON-LD CG Meeting Summary for {{gDate}}*
84+
// Mustache template - vars: gDate, formattedItems, content, minutes_base_url
85+
const GPLUS_BODY = ('gplus' in config && 'body' in config.gplus)
86+
? config.gplus.body
87+
: `*Meeting Summary for {{gDate}}*
8688
8789
We discussed {{formattedItems}}.
8890
8991
{{{content}}}
9092
9193
Full transcript and audio logs are available here:
9294
93-
https://json-ld.github.io/minutes/{{gDate}}/
94-
95-
#w3c #json-ld`;
95+
{{{minutes_base_url}}}{{gDate}}/
96+
`;
9697

9798
// Mustache template - vars: message, gDate
9899
const TWITTER_BODY = `JSON-LD CG discusses {{message}}:
@@ -438,7 +439,8 @@ Full text of the discussion follows for archival purposes.
438439
}
439440

440441
// format in a way that is readable on G+
441-
content = Mustache.render(GPLUS_BODY, {gDate, formattedItems, content});
442+
content = Mustache.render(GPLUS_BODY, {gDate, formattedItems, content,
443+
minutes_base_url: scrawl.minutes_base_url});
442444

443445
console.log('scrawl: You will need to paste this to your G+ stream:\n');
444446
console.log(content);

0 commit comments

Comments
 (0)