]> Untitled Git - lemmy.git/commitdiff
Added comments about how to federate additional post/user fields
authorFelix <me@nutomic.com>
Sun, 12 Apr 2020 14:53:55 +0000 (16:53 +0200)
committerFelix <me@nutomic.com>
Sun, 12 Apr 2020 14:53:55 +0000 (16:53 +0200)
server/src/apub/community.rs
server/src/apub/post.rs
server/src/apub/user.rs

index 76a94ed237b1ea5877313df94c3eb1f1dc0cb806..36b9c70337dbadd5bfb737df3232291591087471 100644 (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
index 48c8b2db2222d37da4df50c19208c2e0dd61115e..fa252c5eb6e5f250c489ba2c83dc930b709b2bde 100644 (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,
index 404a9c102ddcf724a2f50af6f88510559f0e34ed..d10093d4cb11c3377f7768173b8d7a99c5de48fd 100644 (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()),