#dev 2017-11-04

2017-11-04 UTC
#
loqi.me
edited /Twitter (+338) "tantek added "2017-11-03 Selina Wang (Bloomberg Technology) [https://www.bloomberg.com/amp/news/articles/2017-11-03/former-twitter-employee-says-fake-russian-accounts-were-not-taken-seriously Twitter Sidestepped Russian Account Warnings, Former Worke"
(view diff)
#
tantek.com
edited /expiring_content (+1150) "braindump some why reasoning"
(view diff)
#
loqi.me
edited /expiring_content (+12) "tantek added "[[story]]" to "See Also""
(view diff)
tantek, benwerd, [chrisaldrich], [miklb], renem, snarfed, gRegorLove, [jeremycherfas], amz3`, [kevinmarks], raretrack, loicm and calumryan joined the channel
#
GWG
I need a good name for a function that looks at the mf2 properties of a post and returns the elements necessary to generate a link preview of the item being referenced(bookmark URL, check-in data, etc).
#
GWG
I'm using get as the function name for retrieving single properties.
#
sebsel
Are you making a call to the bookmarked URL to get the mf2 from there? That sounds like 'fetch'.
#
GWG
sebsel: No. I'm storing that information in as properties. This is to hide the code that figures out which property
#
GWG
Right now, I store everything in the wrong place. It should be nested properties under in-reply-to or bookmark-of, etc instead of in a separate area.
#
GWG
It's part of the modifications I'm making to support nested properties because Micropub stores them as nested
#
GWG
I just can't think of a name
#
GWG
It isn't the worst problem, but...
#
sebsel
Hm, the way I support nestled properties now is just storing them by URL in a sort-of dictionary
#
GWG
I store them inside the post, not in a third table.
#
sebsel
I have no database, so that's easy, but it looks like XRay's return values, like the 'refs' there.
#
sebsel
But then I use a function I believe I called 'lookup' or 'fetch', which looks at that dictionary for the URL, and if it's not there, it grabs it from the external source and stores it in the dictionary.
#
sebsel
Not sure if that works for you too
#
GWG
I'll just put in a placeholder name, I guess.
calumryan, raretrack, snarfed and [kevinmarks] joined the channel
#
[kevinmarks]
FindLinkPreviewInfo()
calumryan, [eddie], raretrack, John___ and millette joined the channel
[miklb] joined the channel
#
aaronparecki.com
edited /Workflow (+738) "using Workflow to upload to the media endpoint"
(view diff)
amz3`, gRegorLove, KartikPrabhu, [miklb], snarfed, leg, benwerd, tantek and John___ joined the channel