mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-24 11:51:32 +00:00
Added comments about how to federate additional post/user fields
This commit is contained in:
parent
b3a2ddd334
commit
5dbb6f642a
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)
|
||||
// -> 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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue