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
parent 14adddd18d
commit 60184a290c
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

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