mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 01:51:15 +00:00
Set preferred license for actor
This commit is contained in:
1 parent
7954056b68
commit
6726f62425
1 file changed
+7
-1
+7
-1
@@ -601,7 +601,8 @@ def _create_person_base(base_dir: str, nickname: str, domain: str, port: int,
|
||||
'vcard:bday': '',
|
||||
'showFeatured': False,
|
||||
'showMedia': False,
|
||||
'showRepliesInMedia': False
|
||||
'showRepliesInMedia': False,
|
||||
'preferredLicense': 'https://creativecommons.org/licenses/by-nc/4.0'
|
||||
}
|
||||
|
||||
# extra fields used only by groups
|
||||
@@ -945,6 +946,11 @@ def person_upgrade_actor(base_dir: str, person_json: {},
|
||||
person_json['capabilities']['supportsFriendRequests'] = False
|
||||
update_actor = True
|
||||
|
||||
if 'preferredLicense' not in person_json:
|
||||
person_json['preferredLicense'] = \
|
||||
'https://creativecommons.org/licenses/by-nc/4.0'
|
||||
update_actor = True
|
||||
|
||||
if 'memorial' not in person_json:
|
||||
person_json['memorial'] = False
|
||||
update_actor = True
|
||||
|
||||
Reference in new issue
Block a user