How to remove the OneBox site-icon from appearing in RSS feeds?

When dropping a link with OneBox, you get the site icon there at the top, and then you get the featured image. See the example below.

Is there a way to yank out the site icon? Not with css tricks.

The issue, when using RSS feeds, it’s pulling in the site icon as the RSS feed thumbnail, instead of the featured image that you would expect. Example here (I couldn’t upload an image for some reason). I don’t mind the site icon being there, but some feed readers, tools, are pulling the first image and using it. Not sure how to get around this.

Are you looking for setting topic featured link enabled and/or same with RSS?

Discourse is putting the Onebox favicon as the featured image or your RSS reader is?

Because checking the XML I don’t see Discourse doing this:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>How to remove the OneBox site-icon from appearing in RSS feeds?</title>
    <link>https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768</link>
    <description>When dropping a link with OneBox, you get the site icon there at the top, and then you get the featured image. See the example below.

Is there a way to yank out the site icon? Not with css tricks.

The issue, when using RSS feeds, it&#39;s pulling in the site icon as the RSS feed thumbnail, instead of the featured image that you would expect. Example [here](https://ibb.co/7ptV8wN) *(I couldn’t upload an image for some reason)*. I don’t mind the site icon being there, but some feed readers, tools, are pulling the first image and using it. Not sure how to get around this.

https://www.epa.gov/newsreleases/final-epa-standards-heavy-duty-vehicles-slash-dangerous-pollution-and-take-key-step</description>
    <language>en</language>
    <lastBuildDate>Sat, 14 Jan 2023 16:42:31 +0000</lastBuildDate>
    <category>support</category>
    <atom:link href="https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768.rss" rel="self" type="application/rss+xml" />
      <item>
        <title>How to remove the OneBox site-icon from appearing in RSS feeds?</title>
        <dc:creator><![CDATA[Jakke Lehtonen]]></dc:creator>
        <description><![CDATA[
            <p>Are you looking for setting <code>topic featured link enabled</code> and/or same with RSS?</p>
          <p><a href="https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768/2">Read full topic</a></p>
        ]]></description>
        <link>https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768/2</link>
        <pubDate>Sat, 14 Jan 2023 16:42:31 +0000</pubDate>
        <guid isPermaLink="false">meta.discourse.org-post-251768-2</guid>
        <source url="https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768.rss">How to remove the OneBox site-icon from appearing in RSS feeds?</source>
      </item>
      <item>
        <title>How to remove the OneBox site-icon from appearing in RSS feeds?</title>
        <dc:creator><![CDATA[Brandon]]></dc:creator>
        <description><![CDATA[
            <p>When dropping a link with OneBox, you get the site icon there at the top, and then you get the featured image. See the example below.</p>
<p>Is there a way to yank out the site icon? Not with css tricks.</p>
<p>The issue, when using RSS feeds, it’s pulling in the site icon as the RSS feed thumbnail, instead of the featured image that you would expect. Example <a href="https://ibb.co/7ptV8wN" rel="noopener nofollow ugc">here</a> <em>(I couldn’t upload an image for some reason)</em>. I don’t mind the site icon being there, but some feed readers, tools, are pulling the first image and using it. Not sure how to get around this.</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://www.epa.gov/newsreleases/final-epa-standards-heavy-duty-vehicles-slash-dangerous-pollution-and-take-key-step">
  <header class="source">
      <img src="https://d11a6trkgmumsb.cloudfront.net/original/4X/8/7/5/875433177d8162e892a9bf623ed1c481d8c14db9.png" class="site-icon" width="32" height="32">

      <a href="https://www.epa.gov/newsreleases/final-epa-standards-heavy-duty-vehicles-slash-dangerous-pollution-and-take-key-step" target="_blank" rel="noopener nofollow ugc" title="09:48AM - 20 December 2022">US EPA – 20 Dec 22</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/362;"><img src="https://d11a6trkgmumsb.cloudfront.net/optimized/4X/c/5/8/c58c4b7b1c44875fbfbd6246caf8ac6a8e695381_2_690x362.jpeg" class="thumbnail" width="690" height="362" srcset="https://d11a6trkgmumsb.cloudfront.net/optimized/4X/c/5/8/c58c4b7b1c44875fbfbd6246caf8ac6a8e695381_2_690x362.jpeg, https://d11a6trkgmumsb.cloudfront.net/optimized/4X/c/5/8/c58c4b7b1c44875fbfbd6246caf8ac6a8e695381_2_1035x543.jpeg 1.5x, https://d11a6trkgmumsb.cloudfront.net/original/4X/c/5/8/c58c4b7b1c44875fbfbd6246caf8ac6a8e695381.jpeg 2x" data-dominant-color="3B5D39"></div>

<h3><a href="https://www.epa.gov/newsreleases/final-epa-standards-heavy-duty-vehicles-slash-dangerous-pollution-and-take-key-step" target="_blank" rel="noopener nofollow ugc">Final EPA Standards for Heavy-Duty Vehicles to Slash Dangerous Pollution and...</a></h3>

  <p>EPA News Release: Final EPA Standards for Heavy-Duty Vehicles to Slash Dangerous Pollution and Take Key Step Toward Accelerating Zero-Emissions Future</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

          <p><a href="https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768/1">Read full topic</a></p>
        ]]></description>
        <link>https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768/1</link>
        <pubDate>Sat, 14 Jan 2023 15:19:48 +0000</pubDate>
        <guid isPermaLink="false">meta.discourse.org-post-251768-1</guid>
        <source url="https://meta.discourse.org/t/how-to-remove-the-onebox-site-icon-from-appearing-in-rss-feeds/251768.rss">How to remove the OneBox site-icon from appearing in RSS feeds?</source>
      </item>
  </channel>
</rss>

Oh I see, so the problem is that some RSS readers will pull whatever image they found and use it as a " featured image".

I don’t see us having to parse → filter → serialize posts on every RSS request by default, but this is something you could do in a custom plugin if you own the instance that you care most about.

I found a Wordpress plugin and Mailerlite that did this. Both of those just grab the first image and unfortunately, the site icon is the first image. So a custom plugin is the only way, is there any docs on how to do something like that, my guess is no way Jose! :smile: