FEATURE: Google Calendar doesn't support URL in iCalendar, add fallback description

This commit is contained in:
Rafael dos Santos Silva 2020-03-17 20:06:15 -03:00
parent d6838608ff
commit 8ae472bc41
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ DTSTAMP:<%= bookmark.updated_at.strftime("%Y%m%dT%H%M%SZ") %>
DTSTART:<%= bookmark.reminder_at.strftime("%Y%m%dT%H%M%SZ") %> DTSTART:<%= bookmark.reminder_at.strftime("%Y%m%dT%H%M%SZ") %>
DTEND:<%= (bookmark.reminder_at + 1.hour).strftime("%Y%m%dT%H%M%SZ") %> DTEND:<%= (bookmark.reminder_at + 1.hour).strftime("%Y%m%dT%H%M%SZ") %>
SUMMARY:<%= bookmark.name.presence || bookmark.topic.title %> SUMMARY:<%= bookmark.name.presence || bookmark.topic.title %>
DESCRIPTION:<%= Discourse.base_url %>/t/-/<%= bookmark.topic_id %>
URL:<%= Discourse.base_url %>/t/-/<%= bookmark.topic_id %> URL:<%= Discourse.base_url %>/t/-/<%= bookmark.topic_id %>
END:VEVENT END:VEVENT
<% end %> <% end %>