1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Weird OpenGraph behaviour

Discussion in 'Site Feedback' started by aimeeandbeatles, May 4, 2020.

  1. aimeeandbeatles

    aimeeandbeatles watermelon

    Joined:
    Apr 5, 2007
    Messages:
    19,950
    Gender:
    Female
    If you link to a specific post, the og:image links correctly to the user avatar, but the og:description instead takes text from the first post on the page:

    Code:
    <link rel="canonical" href="https://forums.civfanatics.com/threads/random-raves-110010-vast-hordes-of-toilet-paper.656217/page-26" />
    <meta name="description" content="That's the spirit. :)" /> <meta property="og:site_name" content="CivFanatics Forums" />
    <meta property="og:image" content="https://forums.civfanatics.com/data/avatars/m/113/113861.jpg?1586113581" />
    <meta property="og:image" content="https://forums.civfanatics.com/images/icons/civfanatics_icon_og_256x256.png" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="https://forums.civfanatics.com/threads/random-raves-110010-vast-hordes-of-toilet-paper.656217/" />
    <meta property="og:title" content="Random Raves 110010: Vast Hordes of Toilet Paper" />
    <meta property="og:description" content="That's the spirit. :)" />
    
    This messes up Discord rich embeds, for instance:



    I'm not sure if this is fixable, but I thought I'd bring it to attention.
     
  2. Synsensa

    Synsensa Deity Retired Moderator

    Joined:
    Nov 19, 2006
    Messages:
    22,384
    This is still a problem.
     

Share This Page