Skip to content

Commit

Permalink
Include Omer URL in calendar feed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Apr 26, 2022
1 parent b5b1cd8 commit 8839cea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/icalendar",
"version": "4.17.1",
"version": "4.17.2",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"ical",
Expand All @@ -24,7 +24,7 @@
"url": "https://github.com/hebcal/hebcal-icalendar/issues"
},
"dependencies": {
"@hebcal/core": "^3.36.0",
"@hebcal/core": "^3.36.1",
"@hebcal/rest-api": "^3.13.0",
"murmurhash3": "^0.5.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/icalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ function createMemo(e, options) {
}
const mask = e.getFlags();
if (mask & flags.OMER_COUNT) {
return e.getTodayIs('en') + '\\n\\n' + e.memo;
const sefira = [e.sefira('en'), e.sefira('he'), e.sefira('translit')].join('\\n');
return e.getTodayIs('en') + '\\n\\n' + sefira + '\\n\\n' + e.url();
}
const url = appendTrackingToUrl(e.url(), options);
const torahMemo = makeTorahMemo(e, options.il);
Expand Down
2 changes: 1 addition & 1 deletion src/icalendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ test('OmerEvent', (t) => {
'CLASS:PUBLIC',
'DESCRIPTION:Today is 37 days\\, which is 5 weeks and 2 days of the Omer\\n\\n',
' Might within Foundation\\nגְבוּרָה שֶׁבִּיְּסוֹד\\nGevu',
' rah shebiYesod',
' rah shebiYesod\\n\\nhttps://www.hebcal.com/omer/5781/37',
'BEGIN:VALARM',
'ACTION:DISPLAY',
'DESCRIPTION:Event reminder',
Expand Down

0 comments on commit 8839cea

Please sign in to comment.