about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorWesley Ellis <tahnok@gmail.com>2017-04-22 11:29:46 -0400
committerEugen <eugen@zeonfederated.com>2017-04-22 17:29:46 +0200
commita1174a6d7e60dd73ab97da08b52dd751c45e2b6b (patch)
tree82ab9dace044738a843fb404ed7d1db9dc9afe77 /app/views/accounts
parent5357329454afd76c9c3bf5c292d605e3039d3508 (diff)
Add og:url tags (#2298)
* add og:url to stream_item view

* add og:url and text to about/show

* add og:url to profile, followers and follows pages
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/_og.html.haml1
-rw-r--r--app/views/accounts/show.html.haml2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/accounts/_og.html.haml b/app/views/accounts/_og.html.haml
index b7f019c50..3ad39f391 100644
--- a/app/views/accounts/_og.html.haml
+++ b/app/views/accounts/_og.html.haml
@@ -1,3 +1,4 @@
+%meta{ property: 'og:url', content: url }/
 %meta{ property: 'og:site_name', content: site_title }/
 %meta{ property: 'og:title', content: [yield(:page_title).strip.presence, site_title].compact.join(' - ') }/
 %meta{ property: 'og:description', content: account.note }/
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index 4611155cd..11f74decf 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -6,7 +6,7 @@
   %link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
 
   %meta{ property: 'og:type', content: 'profile' }/
-  = render 'og', account: @account
+  = render 'og', account: @account, url: account_url(@account, only_path: false)
 
 - if show_landing_strip?
   = render partial: 'shared/landing_strip', locals: { account: @account }