Store pad comments also #7

Open
opened 5 years ago by decentral1se · 2 comments
Owner

https://framapad.org/ has pad annotations. We can add notes to the side of the pad about the text in the pad. This is a nice way to give more context to the pad. If etherpump could read the line number of the comment and the comment of the text for the purpose of piping into new publication formats, we'd be in a new and weirder place! 🚀

https://framapad.org/ has pad annotations. We can add notes to the side of the pad about the text in the pad. This is a nice way to give more context to the pad. If etherpump could read the line number of the comment and the comment of the text for the purpose of piping into new publication formats, we'd be in a new and weirder place! :rocket:
Poster
Owner
* https://github.com/ether/ep_comments * https://github.com/ether/ep_comments#creating-comment-via-api
Poster
Owner
$ curl -X \
  GET \
  https://pad.vvvvvvaria.org/professionalisering.blogpost/comments?apikey=<get this from the server>

Here is an example output:

{
    "code": 0,
    "data": {
        "comments": {
            "c-MqxFRRD7koCDXAfu": {
                "author": "a.xOzxcrYApNHgdDH9",
                "name": "Anonymous",
                "text": "The Need",
                "changeTo": "The Need",
                "changeFrom": "Need",
                "timestamp": 1579883406724
            },
            "c-I74EPh54OG6m0S8l": {
                "author": "a.xOzxcrYApNHgdDH9",
                "name": "decentral1se",
                "text": "The Need",
                "changeTo": "The Need",
                "changeFrom": "Need",
                "timestamp": 1579883461234,
                "changeAccepted": true,
                "changeReverted": false
            },
...

It appears to also be able to get comments on a per-revision basis. So, as the pad changes, we can also see which edits are accepted/rejected. Here are the limits I've seen:

  • I don't see reply to comments listed in the JSON response although the code seems to be aware of this: cc1b44cccf/commentManager.js (L112)
  • This plugin has not been updated since 2017 :/ (but it still works!).
```bash $ curl -X \ GET \ https://pad.vvvvvvaria.org/professionalisering.blogpost/comments?apikey=<get this from the server> ``` Here is an example output: ```json { "code": 0, "data": { "comments": { "c-MqxFRRD7koCDXAfu": { "author": "a.xOzxcrYApNHgdDH9", "name": "Anonymous", "text": "The Need", "changeTo": "The Need", "changeFrom": "Need", "timestamp": 1579883406724 }, "c-I74EPh54OG6m0S8l": { "author": "a.xOzxcrYApNHgdDH9", "name": "decentral1se", "text": "The Need", "changeTo": "The Need", "changeFrom": "Need", "timestamp": 1579883461234, "changeAccepted": true, "changeReverted": false }, ... ``` It appears to also be able to get comments on a per-revision basis. So, as the pad changes, we can also see which edits are accepted/rejected. Here are the limits I've seen: * I don't see reply to comments listed in the JSON response although the code seems to be aware of this: https://github.com/ether/ep_comments/blob/cc1b44cccfe70b4560358e4dad2c9cba7faf81dd/commentManager.js#L112 * This plugin has not been updated since 2017 :/ (but it still works!).
decentral1se changed title from Etherpump to read pad annotations? to Store pad comments also 4 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.