Browse Source

Add description

pull/38/head
Dashie der otter 3 months ago
parent
commit
85e737fb13
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
2 changed files with 7 additions and 5 deletions
  1. 1
    0
      controllers/sound.py
  2. 6
    5
      docs/payloads/audio.json

+ 1
- 0
controllers/sound.py View File

@@ -110,6 +110,7 @@ def upload():
110 110
                 rec.title = filename_orig
111 111
             else:
112 112
                 rec.title = form.title.data
113
+            rec.description = form.description.data
113 114
             rec.private = form.private.data
114 115
 
115 116
             if "flac" in request.files["sound"].mimetype or "ogg" in request.files["sound"].mimetype:

+ 6
- 5
docs/payloads/audio.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
     "type": "Create",
3
-    "id": "https://reel2bits.dev.lan.sigpipe.me/outbox/2c359b39986781d6",
3
+    "id": "https://reel2bits.dev.lan.sigpipe.me/outbox/10b2ab815fe82475",
4 4
     "actor": "https://reel2bits.dev.lan.sigpipe.me/user/dashie",
5 5
     "object": {
6 6
         "type": "Audio",
@@ -12,15 +12,16 @@
12 12
             "https://www.w3.org/ns/activitystreams#Public"
13 13
         ],
14 14
         "name": "zithar test",
15
+        "content": "description blah blah",
15 16
         "mediaType": "text/plain",
16 17
         "url": {
17 18
             "type": "Link",
18
-            "href": "http://reel2bits.dev.lan.sigpipe.me/uploads/sounds/dashie/80fa91d2de7d970ed14370a228e38dee13d778655d1f92543defbb3bfd84f671.mp3",
19
+            "href": "http://reel2bits.dev.lan.sigpipe.me/uploads/sounds/dashie/db9833277fc5eced72b919485066d5e1fcd622e1ebc67c6af417e7f882777b29.mp3",
19 20
             "mediaType": "audio/mp3"
20 21
         },
21 22
         "sensitive": false,
22
-        "published": "2019-03-28T11:49:11Z",
23
-        "id": "https://reel2bits.dev.lan.sigpipe.me/outbox/2c359b39986781d6/activity"
23
+        "published": "2019-03-28T11:55:34Z",
24
+        "id": "https://reel2bits.dev.lan.sigpipe.me/outbox/10b2ab815fe82475/activity"
24 25
     },
25 26
     "@context": [
26 27
         "https://www.w3.org/ns/activitystreams",
@@ -38,5 +39,5 @@
38 39
     "cc": [
39 40
         "https://reel2bits.dev.lan.sigpipe.me/user/dashie/followers"
40 41
     ],
41
-    "published": "2019-03-28T11:49:11Z"
42
+    "published": "2019-03-28T11:55:34Z"
42 43
 }

Loading…
Cancel
Save