Skip to content

Commit

Permalink
Set og:site_name and og:type when embedding instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Aug 28, 2024
1 parent b6c4ac3 commit 22f54a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/services/embed.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export class EmbedService {
if (this.meta.getTag('name="og:title"')) return;

this.embed(`${instance.instanceName} · ${instance.instanceDescription}`, `${instance.instanceName} is a free custom server for LittleBigPlanet.`);
this.setPropertyTag("og:site_name", instance.instanceName)
this.setPropertyTag("og:type", "website")
}

embedPhoto(photo: Photo) {
Expand Down

0 comments on commit 22f54a1

Please sign in to comment.