Discourse Reactions does not support non-regular free icons(far- prefix is added to like icon)

I’m trying to add the free, solid, beer icon as my discourse reactions like icon:
image

Unfortunately the far- prefix is added to the “beer” text

and the regular icon is not included in the free tier:

so the icon does not load:

image

If this is intended, is there a workaround for this?

1 Like

By wild chance, does fas-beer as the icon name work?

The icon works if you can’t like it anymore, but not when you can.

Looking at the code, when you liked already:

When you did not like yet:

It expects a far— version, which doesn’t seem to exist for beer. :thinking:

A quick solution in your case is to use the API to replace the far-beer, for example:

<script type="text/discourse-plugin" version="0.8">
    api.replaceIcon("far-beer", "beer");
</script>

I don’t know if a new setting should be introduced here or add some logic to use the same non-far version if the far-version doesn’t exist. :thinking:

5 Likes

Sadly not, it’s empty just like above.

Thanks for taking a detailed look at this. Using the html above is definitely a good workaround for the forseeable future. We did this originally to replace the heart, but it completely slipped my mind that it could be used again to replace the far-beer too.

2 Likes

7 posts were split to a new topic: Problems replacing the :heart: icon in Reactions