diff --git a/client/html/post_main.tpl b/client/html/post_main.tpl
index 84e48b1c..6c1c05e0 100644
--- a/client/html/post_main.tpl
+++ b/client/html/post_main.tpl
@@ -53,6 +53,7 @@
+
<% if (ctx.canCreateComments) { %>
Add comment
diff --git a/client/js/controllers/post_main_controller.js b/client/js/controllers/post_main_controller.js
index bd338129..ff5ca5d1 100644
--- a/client/js/controllers/post_main_controller.js
+++ b/client/js/controllers/post_main_controller.js
@@ -187,6 +187,9 @@ class PostMainController extends BasePostController {
if (e.detail.source !== undefined && e.detail.source !== null) {
post.source = e.detail.source;
}
+ if (e.detail.desc !== undefined && e.detail.desc !== null) {
+ post.desc = e.detail.desc;
+ }
post.save().then(
() => {
this._view.sidebarControl.showSuccess("Post saved.");
diff --git a/client/js/models/post.js b/client/js/models/post.js
index 01f81bf1..673ebb00 100644
--- a/client/js/models/post.js
+++ b/client/js/models/post.js
@@ -114,6 +114,10 @@ class Post extends events.EventTarget {
return this._notes;
}
+ get desc() {
+ return this._desc;
+ }
+
get comments() {
return this._comments;
}
@@ -277,6 +281,9 @@ class Post extends events.EventTarget {
if (this._source !== this._orig._source) {
detail.source = this._source;
}
+ if (this._desc !== this._orig._desc) {
+ detail.desc = this._desc;
+ }
let apiPromise = this._id
? api.put(uri.formatApiLink("post", this.id), detail, files)
diff --git a/server/config.yaml.dist b/server/config.yaml.dist
index 7787482b..7d5f075f 100644
--- a/server/config.yaml.dist
+++ b/server/config.yaml.dist
@@ -103,7 +103,7 @@ privileges:
'posts:edit:content': power
'posts:edit:flags': regular
'posts:edit:notes': regular
- 'posts:edit:desc': regular
+ 'posts:edit:desc': regular
'posts:edit:relations': regular
'posts:edit:safety': power
'posts:edit:source': regular