mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
Inside `type objects` we accepted upload URLs and converted them into IDs, but we did not update the original object to have an ID. Only on consuming should we turn the ID into a URL. For normal front-end consumers, object upload fields should still be URLs. Backend consumers should expect upload IDs. <img width="2295" height="1263" alt="Screenshot 2026-05-20 at 12 19 23" src="https://github.com/user-attachments/assets/20d411c4-1570-45fc-96c8-02f2b1b3639d" />
38 lines
804 B
YAML
Vendored
38 lines
804 B
YAML
Vendored
discourse_sample_plugin:
|
|
discourse_sample_plugin_enabled: true
|
|
site_settings:
|
|
plugin_setting:
|
|
default: "some value"
|
|
test_some_topic_id:
|
|
default: 0
|
|
test_some_other_topic_id:
|
|
default: 0
|
|
enable_experimental_sample_plugin_feature:
|
|
default: false
|
|
client: true
|
|
hidden: true
|
|
upcoming_change:
|
|
impact: "feature,admins"
|
|
status: "alpha"
|
|
test_objects_with_uploads:
|
|
type: objects
|
|
default: "[]"
|
|
schema:
|
|
name: "test_object"
|
|
properties:
|
|
name:
|
|
type: string
|
|
upload_id:
|
|
type: upload
|
|
ui_cards_setting:
|
|
type: objects
|
|
default: "[]"
|
|
schema:
|
|
name: card
|
|
identifier: title
|
|
properties:
|
|
title:
|
|
type: string
|
|
required: true
|
|
image:
|
|
type: upload
|