Revert "fix(spec): always show thumb in topic response"

This reverts commit 493c568a75.
v1.18.x
Julian Lam 4 years ago
parent 493c568a75
commit 90434a4668

@ -74,9 +74,6 @@ PostObject:
description: A category identifier description: A category identifier
slug: slug:
type: string type: string
thumb:
type: string
description: An uploaded topic thumbnail
deleted: deleted:
type: number type: number
postcount: postcount:

@ -41,9 +41,6 @@ TopicObject:
type: number type: number
locked: locked:
type: number type: number
thumb:
type: string
description: An uploaded topic thumbnail
pinned: pinned:
type: number type: number
description: Whether or not this particular topic is pinned to the top of the description: Whether or not this particular topic is pinned to the top of the
@ -224,6 +221,8 @@ TopicObject:
description: HTML injected into the theme description: HTML injected into the theme
index: index:
type: number type: number
thumb:
type: string
required: required:
- tid - tid
- uid - uid

@ -42,9 +42,6 @@ get:
type: number type: number
viewcount: viewcount:
type: number type: number
thumb:
type: string
description: An uploaded topic thumbnail
deleted: deleted:
type: number type: number
locked: locked:

@ -53,9 +53,6 @@ get:
type: number type: number
viewcount: viewcount:
type: number type: number
thumb:
type: string
description: An uploaded topic thumbnail
postercount: postercount:
type: number type: number
description: The number of unique users who made a post in this topic description: The number of unique users who made a post in this topic

@ -49,9 +49,6 @@ get:
type: number type: number
viewcount: viewcount:
type: number type: number
thumb:
type: string
description: An uploaded topic thumbnail
postercount: postercount:
type: number type: number
teaserPid: teaserPid:

@ -98,7 +98,9 @@ function modifyTopic(topic, fields) {
escapeTitle(topic); escapeTitle(topic);
topic.thumb = validator.escape(String(topic.thumb)) || ''; if (topic.hasOwnProperty('thumb')) {
topic.thumb = validator.escape(String(topic.thumb));
}
if (topic.hasOwnProperty('timestamp')) { if (topic.hasOwnProperty('timestamp')) {
topic.timestampISO = utils.toISOString(topic.timestamp); topic.timestampISO = utils.toISOString(topic.timestamp);

Loading…
Cancel
Save