Commit dac513ed246b2ba207845ae7fa91b0dce51c2391

Authored by Braulio Bhavamitra
1 parent 638fc311

metadata: fix og:title on profiles

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
plugins/metadata/lib/ext/profile.rb
@@ -5,7 +5,7 @@ class Profile @@ -5,7 +5,7 @@ class Profile
5 metadata_spec namespace: :og, tags: { 5 metadata_spec namespace: :og, tags: {
6 type: MetadataPlugin.og_types[:profile] || :profile, 6 type: MetadataPlugin.og_types[:profile] || :profile,
7 image: proc{ |p, plugin| "#{p.environment.top_url}#{p.image.public_filename}" if p.image }, 7 image: proc{ |p, plugin| "#{p.environment.top_url}#{p.image.public_filename}" if p.image },
8 - title: proc{ |p, plugin| p.nickname || p.name }, 8 + title: proc{ |p, plugin| if p.nickname.present? then p.nickname else p.name end },
9 url: proc do |p, plugin| 9 url: proc do |p, plugin|
10 #force profile identifier for custom domains and fixed host. see og_url_for 10 #force profile identifier for custom domains and fixed host. see og_url_for
11 plugin.og_url_for p.url.merge(profile: p.identifier) 11 plugin.og_url_for p.url.merge(profile: p.identifier)