#social 2019-11-19

2019-11-19 UTC
KjetilK_, maximilian[m], sl007, jacky and ayorosmage joined the channel
#
heluecht[m]
trwnh (IRC): you propose to have an "attachment" array with an "link" type array that contains a "page" type array, that's correct?
#
heluecht[m]
But both "link" and "page" would then contain the url to the linked page. This sounds strange.
KjetilK joined the channel; basshero-jaywink[m] left the channel
#
trwnh
heluecht[m]: Link is not an array, it is a type
#
trwnh
the only array is "attachment"
#
trwnh
you dont have to include the url twice unless you want to
#
trwnh
the href of the Link is part of the post itself, e.g. a Link with "name": "some link" and "href": "https://site.example" would map to the html output <a href="https://site.example">some link</a>
#
trwnh
i would say just don't include "url" inside whatever Object you use for "preview"
#
trwnh
unless you really wanted to not parse the "href" for some reason and wanted to be explicit. that would essentially allow the href and the preview url to be different
BitBot joined the channel
#
heluecht[m]
trwnh (IRC): With "link type array" I meant an array with a "type" field with the content "link".
#
heluecht[m]
Could you create some example? I can comprehend things mostly much faster when I do see them, instead of having it described.
#
trwnh
i got lazy with the "icon" and didn't type out the full Image representation for it but imagine i did
sl007 and ilmu joined the channel