Forgive me if this has been asked before, but I am unable to find a previous topic on this.
I’m wondering how to register an asset as public (such as an image) through a discourse plugin - it seems currently after registering, I get a 404 or 302 response when installing under a private member’s only site.
This is in reference to the Discord oauth plugin I built - I am unable to retrieve the image either directly, or through a register_asset call.
How would I go about serving static plugin assets in this case?
آخر مرة اختبرت فيها هذا، فإن إضافة صور إلى إضافة في مجلد public/images سيجعلها متاحة على الخادم في /plugins/plugin_name/images/.
اسم الإضافة الذي تستخدمه في المسار هو اسم الإضافة الذي تحدده في البيانات الوصفية في أعلى ملف plugin.rb، على سبيل المثال /plugins/trout_emoji/images/trout-square.jpg.