GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    jomo (jomo@mstdn.io)'s status on Thursday, 21-Dec-2023 13:09:09 JST jomo jomo

    TIL #Discord effectively does traffic amplification when users post an image. They crawl the image URL using a Discordbot User-Agent, but in the same second request the same URL with a spoofed Mac OS browser User-Agent that can't be identified as a Discord request.

    Both request are required for the image to render in Discord chat. Absolutely great!

    https://github.com/discord/discord-api-docs/issues/1600#issuecomment-628529359

    In conversation Thursday, 21-Dec-2023 13:09:09 JST from mstdn.io permalink

    Attachments


    1. https://media.mstdn.io/mstdn-media/media_attachments/files/111/616/351/111/297/387/original/df443431b24a746f.png
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Thursday, 21-Dec-2023 13:09:08 JST feld feld
      in reply to
      @jomo how are they supposed to know if it's an image they should embed vs a link preview without crawling it first?
      In conversation Thursday, 21-Dec-2023 13:09:08 JST permalink
    • Embed this notice
      feld (feld@bikeshed.party)'s status on Thursday, 21-Dec-2023 13:17:20 JST feld feld
      in reply to
      @jomo nope, it's not that simple. Some sites won't give you the Opengraph/Twittercard tags unless you have Bot in your user agent and some sites likely reject requests to media if you have Bot in your user agent

      I had to put Bot in Pleroma's to fix link previews to a bunch of news sites. We don't embed image links but if we wanted to I expect I'd need to do the same thing to make it work everywhere with confidence
      In conversation Thursday, 21-Dec-2023 13:17:20 JST permalink
    • Embed this notice
      jomo (jomo@mstdn.io)'s status on Thursday, 21-Dec-2023 13:17:21 JST jomo jomo
      in reply to
      • feld

      @feld well they don't have to request it twice for that, they already have the content after their first crawl.

      In conversation Thursday, 21-Dec-2023 13:17:21 JST permalink
    • Embed this notice
      jomo (jomo@mstdn.io)'s status on Thursday, 21-Dec-2023 13:24:32 JST jomo jomo
      in reply to
      • feld

      @feld this is happening for images that are embedded as ![foo](url) in Discord, you don't need to fetch any opengraph tags for that.

      In conversation Thursday, 21-Dec-2023 13:24:32 JST permalink
      feld likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.