merefield
(Robert)
26 نوفمبر 2020، 9:24ص
1382
I don’t know, what I noticed is that the excerpt field from the JSON payload doesn’t have links stripped out.
Plus, the Topic List Previews plugin author, @merefield , also had some issues with excerpts with links recently: Excerpts are being poisoned by onebox URL's on Post Rebuild
EDIT: You’re right @awesomerobot , this is a specific issue with the Topic List Previews. I just disabled it on my instance and the issue is gone, it looks like TLP is overriding the default excerpt serializer becaus…
@renato ، @falco ، لا أعتقد أن هذه مشكلة في TLP.
لإثبات وجهة نظري، أعد بناء المنشور الأصلي الذي يحتوي على رابط وتحقق من الملخص (بدون تثبيت TLP). استخدم مكون السمة الخاص بالملخصات، على سبيل المثال:
مثال:
كما ترون، تم تلويث الملخص برابط. لا يوجد أي تدخل من TLP في الحالة المذكورة أعلاه.
ومع ذلك، قمت بإنشاء حل بديل لهذه المشكلة، مع خيار لاستبعاد الروابط في الإعدادات:
https://github.com/merefield/discourse-topic-previews/commit/bdd7ba0baeb1bafc06658379a15affc0e861b7fd
تم تطبيق هذا الحل فقط في الإعدادات القائمة على مكون TLP، ولم أقوم بنقله إلى الإضافة الرئيسية. أميل إلى التركيز على إضافة ميزات جديدة إلى المكون. كما أنه لا فائدة من التوسع إذا تم إصلاح هذه المشكلة في النواة؟
إعجابَين (2)