FIX: Sync preload key format for category topic lists

The server and client used two different formats for preload keys. The
server was using 'topic_list_c/SLUG/l/latest', but the client was using
'topic_list_c/SLUG/ID/l/latest'.

This commit is an addition to 374534f00e.
This commit is contained in:
Dan Ungureanu 2020-02-28 11:10:03 +02:00 committed by Neil Lalonde
parent 4bb966aae6
commit 5f88b86ac9
No known key found for this signature in database
GPG Key ID: FF871CA9037D0A91

View File

@ -67,7 +67,7 @@ class TopicList
def preload_key def preload_key
if @category if @category
"topic_list_#{@category.url.sub(/^\//, '')}/l/#{@filter}" "topic_list_#{@category.url.sub(/^\//, '')}/#{@category.id}/l/#{@filter}"
else else
"topic_list_#{@filter}" "topic_list_#{@filter}"
end end