Change default license to CC-BY-SA

Fixes #258
This commit is contained in:
Bat
2018-10-06 18:19:45 +01:00
parent 046c9a011e
commit 387efbf3e9
8 changed files with 91 additions and 5 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ impl FromActivity<Article, Connection> for Post {
title: title,
content: SafeString::new(&article.object_props.content_string().expect("Post::from_activity: content error")),
published: true,
license: String::from("CC-0"), // TODO
license: String::from("CC-BY-SA"), // TODO
// FIXME: This is wrong: with this logic, we may use the display URL as the AP ID. We need two different fields
ap_url: article.object_props.url_string().unwrap_or(article.object_props.id_string().expect("Post::from_activity: url + id error")),
creation_date: Some(article.object_props.published_utctime().expect("Post::from_activity: published error").naive_utc()),