git ssb

2+

cel / scuttlebot.io



Update About page

%dj8flkHHw9iE2alf5Sip9xBRYuhnUudUbBehP5QYZ98=.sha256
Closed cel wants to merge commits into master from about
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