#[eddie]Hmmm, I must be doing something wrong. I’m trying to post a JSON Syntax Micropub Request to Aperture and It’s breaking on XRay, saying undefined index: data.
#ZegnatI created a KnownAPI class that does all the API work. The index.php loads the Composer autoloader to get access to dependencies (like the HttpClient).
#ZegnatSo all index.php does is initiate the KnownAPI class (which requires class dependencies and the user’s Known information) and then call the `create` method.
#jeremycherfasI am not at all familiar with any of those http functions
#ZegnatAh, yeah, I was afraid of that :( Basically, there is a standard for how you can implement HTTP requests and responses in PHP: https://www.php-fig.org/psr/psr-7/
#jeremycherfasLooks like I too can post linked title and description now. But currently all hard coded.
#ZegnatAwesome! Yeah. I was thinking yesterday that while the Micropub code messes some stuff up, it really should work with Known’s own API. So I gave it a shot :)
#Loqi[aaronpk] There must be a better way to describe this then. The idea is that only the orderings of the provided items would be affected by the operation. Some examples:
given: `[a b c d e]`
command: `[c b]` ("move `c` up")
result: `[a c b d e]`
given: ...
#aaronpkZegnat: I implemented that yesterday in Aperture, it wasn't too hard.
#ZegnatI should check out the code. Maybe that one example you gave with three items just threw me off. I wasn’t sure how to get from the input to the output with that command
#aaronpkI suspect the vast majority of the usage will be swapping two adjacent items or specifying the new order of the full list, but it's convenient that there is only one method needed for both
#ZegnatI am not sure I understand the code you put into Aperture, aaronpk. Isn’t that only accepting a full array of the new order?
#aaronpksince there is a database column storing an integer used for sorting, that function swaps the integer with any of the other channels provided in the input
#aaronpkyes, it takes an array of the new order of the channel IDs
#aaronpkline 41 gets the current order, the first array in your example f
#aaronpkactually no I guess it's not an analogous version of your f
#aaronpkthis only ever touches the channels that are being modified
#GWGWondering if using two time and date selectors was the best for duration
#Zegnatf(arrayPerOldSort, reorderCommand) = newlySortedArray ; basically taken from your comment in the GitHub issue
#ZegnatAnd I am having a hard time seeing how f() works there. But maybe your example was a bit far-fetched?
#aaronpkthe function I wrote will work with the `e d b` example, but that's because it's not strictly doing `f([a b c d e], [e d b]) = [a e c d b]`
#aaronpkit's pulling things from the database and writing back to the database, rather than accepting input and returning the new sorted output
#ZegnatYeah, I’m starting to see that now. Finding it hard to visualise that though. Maybe I should setup a Aperture db instance just to get the clear picture.
Zegnat, barpthewire, tantek and snarfed joined the channel
#aaronpkif I move it to the backend then I can do things like turn off the twitter card or make it better, and change the title tag to include the amount
#[eddie]aaronpk, about Microsub spec: Yeah, I think so. I think notifications remain as they are. But I think Home is just another channel in the Microsub Server. No special client treatment.
#[eddie]But a Microsub Server is required to start with a single Home channel (uid is whatever the Microsub Server wants)
#Zegnatreflexively went to microsub.spec.indieweb.org but that isn’t a thing
tantek joined the channel
#[eddie]Hmmm I would be okay with notifications being returned in the list of channels for information wise. I think the main issue is sorting. It seems strange to have notifications in the sorting mix
[kevinmarks] joined the channel
#[eddie]Would it be weird to always return notifications as the first channel, and to define that a Microsub server ignore any attempt at placing the uid notifications in the re-order call?
#[eddie]So if I sent [a, b, notifications, c, d] the server would just remove notifications from the list
#[eddie]And have the spec define “special channels such as notifications can’t be ordered”
#GWGSo, I've been storing featured image, published/last updated date, and categories/tags for some time, but haven't actually displayed them. I am brainstorming displaying them
#GWGBut, is there such a thing as too much data in a link preview?
#[eddie]I think there is such a thing too much preview data. Not for storage as much as display. I think the key is not overloading the display. But I think the data is useful because it can inform the display
#GWGWell, what I did in weather is I hid a lot of the fields from view, but still stored them.
#[eddie]I think that is useful to store them but hide them
#GWGFields as in, in the editor, not the actual post, because I'm not currently displaying some of them, but held them because I want to someday
#GWGBut I want to hide that more to encourage people to not worry about it so much.
#[eddie]Yeah I think that’s good. I don’t know much about Wordpress UI but it might even be nice to hide it behind a “edit preview data” button where it takes an extra step to edit it. Thus discouraging the editing unless it’s required
#GWGI also included Start and End Date/Time, which is currently only used to calculate duration, because I wanted to have it for events later on...but I'm thinking I might have been better off with a duration picker.
#GWG[eddie]: I'm asking in here, over the WordPress room because it isn't a WordPress specific discussion
#[eddie]That’s tough, for events I think start and end time IS useful. But I can see how having it there for every most might be a bit much
#GWGSo, I was thinking of adding a duration picker and showing/hiding the start and end date as needed.
#LoqiIt looks like we don't have a page for "duration for on other post types" yet. Would you like to create it? (Or just say "duration for on other post types is ____", a sentence describing the term)
#GWG[eddie]: Duration is used for music/video/reading, for example.
#aaronpkoh you can remove Pusher from that, I realized I had just left in the default .env config from Laravel. I don't actually use Pusher for anything
#aaronpkI would have just moved my notifications channel to the top of the list on my account. but instead I made a migration to adjust that for all the user accounts.
#aaronpknot a huge deal, it's just that this is exactly the thing I was trying to avoid at this early stage of the project, to make it so I can move quicker
#ZegnatTo be fair, all “users” know that this is all unsupported.
#Zegnat(To be fair is turning into a new starting sentence for me, I need to stop that.)
#aaronpkyep but it'll save me time in the end to make this migration instead of having to give instructions to people in IRC later :P
#Loqifragmentioner is a Javascript utility by Kartik Prabhu which gives a pop-up link with the fragmention URL to a piece of selected text https://indieweb.org/fragmentioner