#dev 2017-03-25

2017-03-25 UTC
#
GWG
miklb, that is the debate
#
miklb
Personally I would side with replies being a webmention comment_type
#
miklb
if it originates as a webmention, that's how it should be stored would be my opnion
#
GWG
But the issue is how WordPress works
#
miklb
how so?
#
GWG
Subtype in comment meta isn't a native thing
#
miklb
aha. I was using the wrong key
#
miklb
I forgot about semantic_linkbacks
#
GWG
The type reflecting behavior over source works better with design
#
miklb
lol, semantic linkbacks plugin has a function for retrieving a type of comment. `get_linkbacks`
#
miklb
OK, I went back and looked, and do not see that documented anywhere, so I don't feel quite as silly now.
#
miklb.com
edited /Semantic_Linkbacks (+694) "/* Semantic Comments */"
(view diff)
#
miklb
if anyone has any feedback on that edit. Not sure if normally add code examples in the wiki or not.
[chrisaldrich], tantek, miklb_, miklb, barpthewire, [kevinmarks] and [jeremycherfas] joined the channel
#
kevinmarks.com
edited /Micropub (+138) "/* Libraries */"
(view diff)
loicm joined the channel
#
Zegnat
I just spotted shrink-to-fit=no in adactio’s viewport meta, is that another must-have one besides width and initial-scale?
[jeremycherfas], leg and venezianboy joined the channel
KartikPrabhu joined the channel
#
www.boffosocko.com
created /mastodon (+22) "redirect"
(view diff)
#
www.boffosocko.com
edited /GNU_social (+14) "+Quitter"
(view diff)
tantek joined the channel
#
aaronpk
whoa, I didn't know about -webkit-mask
#
tantek
there's a whole CSS Masking spec
#
tantek
pretty sure there's some implementation in Firefox too
#
aaronpk
that's what foursquare uses to get the hex shape around icons
#
tantek
it's been in CR for a while: https://www.w3.org/TR/css-masking-1/
#
Loqi
[Dirk Schulze] CSS Masking Module Level 1
#
tantek
here's the FF bug for tracking implementing the whole thing if you're curious about progress: https://bugzilla.mozilla.org/show_bug.cgi?id=1312613
#
aaronpk
alright, got my comment permalinks for ownyourswarm looking pretty good
#
tantek
it's backfeeding comments from swarm?!?
#
tantek
wow. assuming likes too?
#
tantek
will be interesting how you backfeed sticker comments ;)
#
aaronpk
right now i have those as a comment with an img tag in it
#
aaronpk
no special markup
#
tantek
oh, as a photo comment?
#
aaronpk
not u-photo, just an image in the comment
#
tantek
ok, because the author of a swarm check-in can add their own photo comments
#
aaronpk
although here's an interesting situation...
#
aaronpk
swarm provides what appears to be alt text for stickers
#
aaronpk
if I include the alt text on the img tag, then the name and plaintext content of the h-entry becomes "Beer?"
#
aaronpk
even though when viewed, the h-entry has no visible text content
#
tantek
that's normal yes
#
tantek
is the img part of the e-content?
#
tantek
totally sensible
#
aaronpk
except that's going to look wrong when my site renders the comment
miklb joined the channel
#
tantek
because it's not rendering the e-content?
#
aaronpk
actually i'm not even sure what my site will do
#
tantek
right, it's up to you whether you want to render markup (images etc.) partially or otherwise in comments you've received
#
aaronpk
wait, where's the whole thing about comparing the "name" with "content"
[chrisaldrich] joined the channel
#
tantek
right, I think somewhere we talk about html sanitization if you want to use the markup in e-content instead of just the plain text
#
aaronpk
well, I have some code that compares "name" and "content" to determine whether the comment has a name, e.g. when I receive webmentions from blog posts
#
tantek
right - so if they're the same - the comment does not have name right?
#
aaronpk
correct
#
aaronpk
but now i'm not sure whether I used the "value" of the content or the "html" of the content
#
aaronpk
comparing the "value" of the content with the "name" will be equal, but comparing with the HTML will be not equal
#
aaronpk
interesting. well it looks like it correctly determines there is no "name" property
#
aaronpk
however it then returns both the plaintext "Beer?" as well as the img tag for the content property
#
aaronpk
i believe that means my site will prioritize the html content and use that
#
aaronpk
so... everything is fine?
#
aaronpk
i feel like we need this example somewhere as a test case though. seems easy to trip up
#
tantek
yes it is worth documenting at least as an IndieWeb Example with points underneath it that describe the details you just did
#
tantek
and if we see a pattern emerge across implementations, we can make explicit guidance accordingly
#
aaronpk
are sticker comments similar to reacji or no?
#
tantek
great question
#
aaronpk
hm i think not, since if two people post the same sticker they are shown as separate comments rather than being rolled up into a count
#
tantek
I feel like they are a one-off on Swarm as I've never seen them anywhere else
#
tantek
good point!
#
tantek
ok that's enough for a dfn since you've made observations
#
tantek
what is a sticker comment?
#
Loqi
It looks like we don't have a page for "sticker comment" yet. Would you like to create it?
#
tantek
what is a photo comment?
#
Loqi
photo comment is what a photo reply looks like in the context of the original post that it is in-reply-to https://indieweb.org/photo_comment
#
tantek
sticker comment should be distinguished from both reacji and photo comments, since it could be mistaken for eeither one
#
aaronpk
a sticker comment is what a [[sticker reply]] looks like in the context of the original post that it is in reply to
#
loqi.me
created /sticker_comment (+141) "prompted by tantek and dfn added by aaronpk"
(view diff)
#
sknebel
what is sticker?
#
Loqi
It looks like we don't have a page for "sticker" yet. Would you like to create it?
tantek and miklb joined the channel
#
www.boffosocko.com
edited /Quitter (+91) "example instances; wiki link"
(view diff)
#
www.boffosocko.com
edited /GNU_social (+14) "+pump.io"
(view diff)
#
loqi.me
created /cc (+249) "prompted by aaronpk and dfn added by sknebel"
(view diff)
#
ascraeus.org
edited /bandwidth (+298) "/* Dealing with bot user agents */"
(view diff)
#
www.boffosocko.com
edited /pnut (+601) "POSSE plugin, examples"
(view diff)
[chrisaldrich], [kevinmarks] and leg joined the channel
#
www.boffosocko.com
uploaded /File:cc_example.PNG "Example of a cc in a social network."
#
www.boffosocko.com
edited /cc (+233) "silo example"
(view diff)
#
www.svenknebel.de
edited /cc (+279) "/* Silo Example */ example from twitter"
(view diff)
[kevinmarks], [jeremycherfas], [chrisaldrich] and benclark joined the channel