Commit dac513ed246b2ba207845ae7fa91b0dce51c2391
1 parent
638fc311
Exists in
master
and in
27 other branches
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 | 5 | metadata_spec namespace: :og, tags: { |
6 | 6 | type: MetadataPlugin.og_types[:profile] || :profile, |
7 | 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 | 9 | url: proc do |p, plugin| |
10 | 10 | #force profile identifier for custom domains and fixed host. see og_url_for |
11 | 11 | plugin.og_url_for p.url.merge(profile: p.identifier) | ... | ... |