Existe um bug nos elementos revisáveis: quando um destaque é reportado, o link aponta para o tópico em vez do post específico, o que dificulta a localização do destaque quando há muitos posts no tópico.
Este commit adiciona target_url para que o link aponte para o post específico do destaque, em vez do tópico.
Antes:
Depois:
Também foram adicionados alguns testes.
main ← small-lovely-cat:fix-boost-links-reviewables
merged 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.
4 Curtiram
nat
(Natalie T)
24 Junho , 2026 09:32
2
Obrigado novamente pela sua contribuição; nosso colega @zogstrip mesclou seu PR
3 Curtiram
nat
(Natalie T)
Fechado
25 Junho , 2026 00:00
4
Este tópico foi automaticamente fechado após 14 horas. Novas respostas não são mais permitidas.