Added comments about how to federate additional post/user fields

This commit is contained in:
Felix 2020-04-12 16:53:55 +02:00
parent 17d3d2492c
commit fc951d9295
3 changed files with 8 additions and 8 deletions

View File

@ -112,7 +112,7 @@ impl CommunityForm {
// TODO: should be parsed as html and tags like <script> removed (or use markdown source)
// -> same for post.content etc
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,
removed: None,
published: oprops

View File

@ -79,18 +79,18 @@ impl PostForm {
body: oprops.get_content_xsd_string().map(|c| c.to_string()),
creator_id: creator.id,
community_id: community.id,
removed: None,
locked: None,
removed: None, // -> Delete activity / tombstone
locked: None, // -> commentsEnabled
published: oprops
.get_published()
.map(|u| u.as_ref().to_owned().naive_local()),
updated: oprops
.get_updated()
.map(|u| u.as_ref().to_owned().naive_local()),
deleted: None,
nsfw: false,
stickied: None,
embed_title: None,
deleted: None, // -> Delete activity / tombstone
nsfw: false, // -> sensitive
stickied: None, // -> put it in "featured" collection of the community
embed_title: None, // -> attachment?
embed_description: None,
embed_html: None,
thumbnail_url: None,

View File

@ -76,7 +76,7 @@ impl UserForm {
admin: false,
banned: false,
email: None,
avatar: None,
avatar: None, // -> icon, image
updated: oprops
.get_updated()
.map(|u| u.as_ref().to_owned().naive_local()),