-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement basic Open Graph support. #901
Conversation
@@ -252,6 +252,11 @@ func (u *User) HomeLink() string { | |||
return setting.AppSubURL + "/" + u.Name | |||
} | |||
|
|||
// HTMLURL returns the user or organization's full link. | |||
func (u *User) HTMLURL() string { | |||
return setting.AppURL + u.Name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use HomeLink()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HomeLink()
returns a relative URL, and Open Graph demands a canonical URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
LGTM |
LGTM Nice feature. |
This PR adds support for the Open Graph protocol.