Skip to content

Implement basic Open Graph support.#901

Merged
lunny merged 1 commit into
go-gitea:masterfrom
minecrafter:opengraph
Feb 11, 2017
Merged

Implement basic Open Graph support.#901
lunny merged 1 commit into
go-gitea:masterfrom
minecrafter:opengraph

Conversation

@minecrafter
Copy link
Copy Markdown
Contributor

This PR adds support for the Open Graph protocol.

Comment thread models/user.go

// HTMLURL returns the user or organization's full link.
func (u *User) HTMLURL() string {
return setting.AppURL + u.Name
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use HomeLink()?

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@lunny lunny added this to the 1.1.0 milestone Feb 11, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Feb 11, 2017
@lunny
Copy link
Copy Markdown
Member

lunny commented Feb 11, 2017

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 11, 2017
@appleboy
Copy link
Copy Markdown
Member

LGTM Nice feature.

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 11, 2017
@lunny lunny merged commit 3f67676 into go-gitea:master Feb 11, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants