Encoding of logo on bot certificate

AI-generated summary

A problem has been identified with the encoding of the forum logo on Discobot certificates. mentalstring discovered that the logo was encoded as a PNG image in the SVG file, causing it to be missing from the certificate. A screenshot of the current certificate is provided, along with a screenshot of the corrected certificate with the logo visible. A pull request (PR) has been created to fix the issue, which is expected to be merged soon vinothkannans.

There seems to me a problem with the current encoding of the forum logo on the discobot certificates.

As I have been having trouble with the discobot certificates, I had a glance at the svg that is being generated.

This jumped out:

...
    <text x="269.2915" y="240.94" text-anchor="middle" font-size="24" fill="#020403" font-family="Tangerine, Tangerine">
      Mentalstring
    </text>
    &lt;g transform=&quot;translate(242.29149999999998 350)&quot;&gt;
  &lt;image height=&quot;55px&quot; width=&quot;55px&quot; xlink:href=&quot;data:image/png;base64,[LONG BLOB IN HERE]=&quot;/&gt;
&lt;/g&gt;
  </g>
  <g id="Layer_1-2" data-name="Layer 1">
..

That seemed encoded when it shouldn’t, so I converted the entities, and got the Discourse logo which was missing:

Here’s the current certificate:

And here’s the same svg but with (manually) fixed encoding:

5 Likes

The PR is ready with the fix and will get merged soon.

https://github.com/discourse/discourse/pull/11805

4 Likes