بعد البحث قليلاً في plugin-api، أعتقد أنني وجدت حلاً لمشكلتك والطريقة الصحيحة لتنفيذ ما اقترحته
<script type="text/discourse-plugin" version="0.8">
api.addPostClassesCallback((attrs) => {
const user = api.getCurrentUser();
if (attrs.user_id === user.id) {
return ['current-user-post']
}
});
</script>
سيؤدي هذا إلى إضافة current-user-post إلى كل منشور ينشره المستخدم الحالي المسجل دخوله.