يوجد خطأ في نظام المراجعات؛ عند الإبلاغ عن دعم (Boost)، يكون الرابط مرتبطًا بالموضوع بدلاً من المنشور المحدد، مما يجعل العثور على الدعم صعبًا عندما يكون عدد المنشورات في الموضوع كبيرًا.
يضيف هذا الالتزام الحقل target_url بحيث يشير الرابط إلى المنشور المحدد للدعم بدلاً من الموضوع.
قبل:
بعد:
كما تمت إضافة بعض الاختبارات التلقائية (specs) لذلك.
main ← small-lovely-cat:fix-boost-links-reviewables
approved 08:32AM - 24 Jun 26 UTC
There exists a bug in the reviewables, when a boost is reported, the link of it … is pointed to the topic rather than the specific post, which makes finding the boost difficult when there are large number of posts in the topic.
This commit add `target_url` so that the link is pointed to the specific post of the boost rather than the topic.
Before:
<img width="1918" height="851" alt="image" src="https://github.com/user-attachments/assets/5fd2b43f-4ab2-4e09-bd52-39caaa7e3ec4" />
After:
<img width="1927" height="871" alt="image" src="https://github.com/user-attachments/assets/4203c770-1013-4747-8940-831d12924081" />
Also added some spec to it.
3 إعجابات
nat
(Natalie T)
24 يونيو 2026، 9:32ص
2
شكرًا لمساهمتك مرة أخرى، لقد دمّج زميلنا @zogstrip طلب السحب الخاص بك