Closed jonnybarnes closed 7 years ago
hey, thanks for trying person tags, and sorry for the trouble!
twitter person tags aren't actually supported right now. bridgy docs, details. twitter itself only allows them with photos, and they're not exposed in the API at all.
as for the text that ends up in the POSSE copies, bridgy generally doesn't modify that. it's been an ongoing debate; details in https://snarfed.org/2015-11-29_keep-bridgy-publish-dumb . i don't know how you'd do it with your hovercard UX, but you could move the u-category silo links outside e-content, render their link text with CSS instead of in HTML (maybe?), or use e.g. p-bridgy-facebook-content
to set the entire POSSE content manually.
as a data point, here's an example of how @tantek includes person tags across web and silos: http://tantek.com/2015/341/t3/indiewebcamp-sf-building-future-web-mozilla
Hmm, if the info is available, I’d want my note to say
Hi <a href="https://joebloggs.com" >Joe Bloggs</a>
and then the Twitter POSSEd copy to be
Hi @joebloggs
Given Joe Bloggs has website https://joebloggs.com
and twitter handle @jeobloggs
.
Is that possible?
sorry, no.
there's been lots of discussion of this and similar features, but high level, i think this kind of thing really needs to be inside or tightly coupled with your CMS. imho bridgy publish is the wrong place. details in https://snarfed.org/2015-11-29_keep-bridgy-publish-dumb .
So one option is to do the swap myself and add the text with a p-bridgy-silo-content
tag?
Another option on quick searching is trying https://silo.pub, but that’s having TLS errors :(
So one option is to do the swap myself and add the text with a
p-bridgy-silo-content
tag?
yup! specifically p-bridgy-twitter-content
.
fwiw, this is definitely a common request: #761, #527, #547. i should probably add something to the docs about it.
Would this work with bridgy?
<div class="e-content p-name">
<p>Some text with a <a class="u-category h-card" href="https://home.page">person-tag</a></p>
<img href="/image-i-took-of-them.jpg">
<p class="p-bridgy-twitter-content">Some text with @mention swapped in</p>
<p class="p-bridgy-facebook-content">Some text with a <a href="u-category h-card" href="https://facebook.com/profile-id">person-tag</a></p>
</div>
it should. try previewing it!
also i recommend putting p-bridgy-*-content
outside of e-content
- example in https://brid.gy/about#silo-content - but up to you.
I‘ll try leaving the <img>
inside the e-content
, and moving the p-bridgy-*-content
outside.
if you want to POSSE image(s), you'll want to add class="u-photo"
.
I think I have this working as I want now using p-bridgy-silo-content
.
still no Twitter API support for this as of June 2020. latest post on the forum i can find is from 2018: https://twittercommunity.com/t/photo-tagging-feature/82716/4?u=schnarfed
I made a note including a person-tag, I think.
The note is here: https://jonnybarnes.uk/notes/F4
The main HTML is (massively prettyfied to see what I’m doing):
It then gets syndicated in a way I don’t want. I edited the Facebook copy, but here’s the twitter copy: https://twitter.com/i/web/status/892644956954927105
It hasn’t swapped the name Sophie Barnes for the Twitter handle @sopehieryder, and it’s left in info regarding her Facebook username. The orginal Facebook POSSEd copy, was the inverse, not mentioning Sophie and leaving in her twitter handle.
Is it possible to POSSE person-tags to both facebook and twitter, and if so how?