git ssb

2+

cel / scuttlebot.io



Commit e1ebe43907cde443a21772e2f96d567a5b5e2509

Update About page

- Document description field
- Document bare link for image
- Clarify that other properties are okay
- Remove bias about number of properties to use

Fix %ugtF1WpFFu3e4fTjP+yI96+UI/F9/L2noH8IRQ8uSr0=.sha256
cel committed on 10/6/2017, 8:50:11 PM
Parent: 404d138845253f2aee74e3c0032fd9273c8762f9

Files changed

tmpl/docs/message-types/about.mdchanged
tmpl/docs/message-types/about.mdView
@@ -1,16 +1,15 @@
11 ## About
22
33 About-messages set attributes about someone or something.
4-They can be used to set a name or picture for users, files, or messages.
5-However, they're most commonly published about users.
4 +They can be used to set a name, picture, description, or other property for users, files, or messages.
65
7-About messages do not have to have both `name` and `image`, and, in fact, it's recommended that they only have one or the other.
8-Why?
9-Because then a `vote` on the message can be more specific.
6 +An About message may set one property or multiple.
7 +If the message sets only one property, then a reply or `vote` on the message can be more specific.
8 +If there are multiple properties to assign, combining them into one About message can reduce data overhead.
109
1110 ```js
12-{ type: 'about', about: Link, name: String, image: BlobLink }
11 +{ type: 'about', about: Link, name: String, image: BlobLink, description: String }
1312 ```
1413
1514 ### Names
1615
@@ -18,20 +17,28 @@
1817 Each user can choose a name for themselves and for others, and conflicts are allowed.
1918
2019 Its up to your application to decide which names to use.
2120 Generally speaking, names by followed users are trusted, and the local user gets to override all decisions.
21 +Self-given names may also be prioritized.
2222
cel %Zh4ZUalmnandohrNdmRr2ekhP5q/cd2L683EMCt/zys=.sha256 · 11/23/2017, 8:59:57 PM

test

cel %W2CWvjyxn25s3WfoJqkG0oItK7/OgjHI9V6oLmxqzHg=.sha256 · 11/23/2017, 10:59:22 PM

test reply

23-A common rule for names is to allow `A-z0-9._-`, and not allow a trailing `.`.
23 +An application may apply a rule for names, such as to allow `A-z0-9._-`, and not allow a trailing `.`.
2424
2525 ### Images
2626
2727 For images, a common size is 512x512.
2828 Square images are recommended but not required.
2929
30-Some recommended (but not required) attributes on the `image` link:
30 +Some recommended attributes on the `image` link:
3131
3232 - `width` in pixels
3333 - `height` in pixels
3434 - `name` a string filename
3535 - `size` in bytes
3636 - `type` a mimetype
3737
38 +The image field may also be a plain blob id instead of a link object, but it is better to include the full object so that clients can make use of the metadata.
39 +
40 +### Description
41 +
42 +A description may be a markdown string describing the referenced entity. A client may show description data for a user on their profile page.
43 +
44 +If the description field is present, there may also be a [`mentions` field](/docs/message-types/post.html) associated with it.

Built with git-ssb-web