mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] rendering for social networks shares
This commit is contained in:
parent
dbff2d1745
commit
601ac177b6
@ -7,6 +7,8 @@
|
||||
- Confirmation before slot delete
|
||||
- Fix a typo: error message while creating a machine slot
|
||||
- Fix a bug: events pagination is bogus in admin's monitoring when selecting non default filter
|
||||
- Fix a bug: social sharing failed for projects with an underscore in their name
|
||||
- Fix a bug: html tags of events description not stripped when sharing on social network
|
||||
- Updated test data to allow passing test suite
|
||||
|
||||
## v2.5.14 2017 September 12
|
||||
|
@ -1,7 +1,7 @@
|
||||
class SocialBotController < ActionController::Base
|
||||
def share
|
||||
case request.original_fullpath
|
||||
when /(=%2F|\/)projects(%2F|\/)([\-0-9a-z]+)/
|
||||
when /(=%2F|\/)projects(%2F|\/)([\-0-9a-z_]+)/
|
||||
@project = Project.friendly.find("#{$3}")
|
||||
render :project, status: :ok
|
||||
when /(=%2F|\/)events(%2F|\/)([0-9]+)/
|
||||
|
@ -25,7 +25,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="<%= ENV['TWITTER_NAME'] %>">
|
||||
<meta name="twitter:title" content="<%= @event.title %>">
|
||||
<meta name="twitter:description" content="<%= @event.description %>">
|
||||
<meta name="twitter:description" content="<%= strip_tags(@event.description) %>">
|
||||
<% if @event.event_image %>
|
||||
<meta name="twitter:image" content="<%= root_url+image.url %>">
|
||||
<% end %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user