mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't include images in the topic map top links
This commit is contained in:
parent
6b6ad9391b
commit
610728a70f
@ -57,6 +57,7 @@ SQL
|
|||||||
|
|
||||||
builder.where('ftl.topic_id = :topic_id', topic_id: topic_id)
|
builder.where('ftl.topic_id = :topic_id', topic_id: topic_id)
|
||||||
builder.where('ft.deleted_at IS NULL')
|
builder.where('ft.deleted_at IS NULL')
|
||||||
|
builder.where("NOT(ftl.url LIKE '%.png' OR ftl.url LIKE '%.jpg' OR ftl.url LIKE '%.gif')")
|
||||||
builder.where("COALESCE(ft.archetype, 'regular') <> :archetype", archetype: Archetype.private_message)
|
builder.where("COALESCE(ft.archetype, 'regular') <> :archetype", archetype: Archetype.private_message)
|
||||||
|
|
||||||
builder.secure_category(guardian.secure_category_ids)
|
builder.secure_category(guardian.secure_category_ids)
|
||||||
|
Loading…
Reference in New Issue
Block a user