Added comments about how to federate additional post/user fields
This commit is contained in:
parent
17d3d2492c
commit
fc951d9295
3 changed files with 8 additions and 8 deletions
|
@ -112,7 +112,7 @@ impl CommunityForm {
|
||||||
// TODO: should be parsed as html and tags like <script> removed (or use markdown source)
|
// TODO: should be parsed as html and tags like <script> removed (or use markdown source)
|
||||||
// -> same for post.content etc
|
// -> same for post.content etc
|
||||||
description: oprops.get_content_xsd_string().map(|s| s.to_string()),
|
description: oprops.get_content_xsd_string().map(|s| s.to_string()),
|
||||||
category_id: 1,
|
category_id: 1, // -> peertube uses `"category": {"identifier": "9","name": "Comedy"},`
|
||||||
creator_id: creator.id,
|
creator_id: creator.id,
|
||||||
removed: None,
|
removed: None,
|
||||||
published: oprops
|
published: oprops
|
||||||
|
|
|
@ -79,18 +79,18 @@ impl PostForm {
|
||||||
body: oprops.get_content_xsd_string().map(|c| c.to_string()),
|
body: oprops.get_content_xsd_string().map(|c| c.to_string()),
|
||||||
creator_id: creator.id,
|
creator_id: creator.id,
|
||||||
community_id: community.id,
|
community_id: community.id,
|
||||||
removed: None,
|
removed: None, // -> Delete activity / tombstone
|
||||||
locked: None,
|
locked: None, // -> commentsEnabled
|
||||||
published: oprops
|
published: oprops
|
||||||
.get_published()
|
.get_published()
|
||||||
.map(|u| u.as_ref().to_owned().naive_local()),
|
.map(|u| u.as_ref().to_owned().naive_local()),
|
||||||
updated: oprops
|
updated: oprops
|
||||||
.get_updated()
|
.get_updated()
|
||||||
.map(|u| u.as_ref().to_owned().naive_local()),
|
.map(|u| u.as_ref().to_owned().naive_local()),
|
||||||
deleted: None,
|
deleted: None, // -> Delete activity / tombstone
|
||||||
nsfw: false,
|
nsfw: false, // -> sensitive
|
||||||
stickied: None,
|
stickied: None, // -> put it in "featured" collection of the community
|
||||||
embed_title: None,
|
embed_title: None, // -> attachment?
|
||||||
embed_description: None,
|
embed_description: None,
|
||||||
embed_html: None,
|
embed_html: None,
|
||||||
thumbnail_url: None,
|
thumbnail_url: None,
|
||||||
|
|
|
@ -76,7 +76,7 @@ impl UserForm {
|
||||||
admin: false,
|
admin: false,
|
||||||
banned: false,
|
banned: false,
|
||||||
email: None,
|
email: None,
|
||||||
avatar: None,
|
avatar: None, // -> icon, image
|
||||||
updated: oprops
|
updated: oprops
|
||||||
.get_updated()
|
.get_updated()
|
||||||
.map(|u| u.as_ref().to_owned().naive_local()),
|
.map(|u| u.as_ref().to_owned().naive_local()),
|
||||||
|
|
Loading…
Reference in a new issue