Skip to content

Commit

Permalink
Merge pull request #1121 from pooza/3_6_1
Browse files Browse the repository at this point in the history
3.6.1
  • Loading branch information
pooza authored Feb 18, 2024
2 parents 5a69db7 + 3492521 commit ee655ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ GIT

GIT
remote: https://github.com/pooza/ginseng-fediverse.git
revision: 9826291080c1674e418936506db17a255f75b971
revision: b5f5e33a244999e2d40f56a5ff86200324617a21
specs:
ginseng-fediverse (1.8.13)

Expand Down
2 changes: 1 addition & 1 deletion app/lib/tomato_shrieker/source/feed_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def entries(&block)
return enum_for(__method__) unless block
feedjira.entries
.sort_by {|entry| entry.published.to_f}
.each {|entry| entry.title = entry.title&.escape_status}
.each {|entry| entry.title = entry.title&.sanitize_status}
.each(&block)
end

Expand Down
6 changes: 3 additions & 3 deletions app/lib/tomato_shrieker/source/icalendar_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def create_entry(event)
return {
start_date: Time.parse(event.dtstart.to_s).getlocal,
end_date: Time.parse(event.dtend.to_s).getlocal,
title: event.summary&.escape_status,
body: event.description&.escape_status,
location: event.location&.escape_status,
title: event.summary&.sanitize_status,
body: event.description&.sanitize_status,
location: event.location&.sanitize_status,
all_day: event.dtstart.is_a?(Icalendar::Values::Date),
}
end
Expand Down
6 changes: 3 additions & 3 deletions views/calendar.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<%= entry[:start_date].strftime('%m/%d %H:%M') %><%= entry[:end_date].strftime('%m/%d %H:%M') %>
<% end -%>
<% end -%>
<% if entry[:title] -%><%= entry[:title].sanitize %><% end %>
<% if entry[:title] -%><%= entry[:title] %><% end %>
<% if entry[:location] -%><%= entry[:location].sanitize %><% end %>
<% if entry[:body] -%><%= entry[:body].sanitize %><% end %>
<% if entry[:location] -%><%= entry[:location] %><% end %>
<% if entry[:body] -%><%= entry[:body] %><% end %>
<% if @params[:tag] && @params[:source] -%>
<%= @params[:source].tags.map(&:to_hashtag).join(' ') %>
Expand Down

0 comments on commit ee655ab

Please sign in to comment.