#dev 2024-01-30
2024-01-30 UTC
aaronpk, geoffo, bterry, gRegorLove_, [0x3b0b], jeremy, kleb, gxt, alex1 and jacky joined the channel
# [tantek] [snarfed] new Bridgy backfeed technique? 😉 https://mastodon.social/@ChrisHardie/111842767174823116
nickname, CB1, geoffo, tPoltergeist, monkeybeans, kody_, [Jo], Loqi, vikanezrimaya, Guest6 and gxt joined the channel
tPoltergeist and mro joined the channel
GWG joined the channel
# [snarfed] usually you don't need to actually MITM real mobile apps. lots of people reverse engineer the "unofficial" APIs for various networks, eg IG and recently Threads have been popular for this, and sending requests from servers generally works fine. at worst you need to spoof User-Agent and maybe rotate IPs 😢
# [campegg] [snarfed] sorry to bother you (again!) but I'm trying to track down the source of some errors I'm getting when processing incoming BF webmentions. This is what I'm seeing:
# [campegg] is_verified, target_object, metadata = verify_webmention(
# [campegg] ``` File "/var/www/dotcom/venv/lib/python3.11/site-packages/mentions/tasks/incoming/process.py", line 38, in process_incoming_webmention
# [campegg] ^^^^^^^^^^^^^^^^^^
# [campegg] File "/var/www/dotcom/venv/lib/python3.11/site-packages/mentions/tasks/incoming/process.py", line 101, in verify_webmention
# [campegg] metadata = get_metadata_from_source(response_html, target_url, source_url)
# [campegg] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# [campegg] File "/var/www/dotcom/venv/lib/python3.11/site-packages/mentions/tasks/incoming/remote.py", line 87, in get_metadata_from_source
# [campegg] hcard = coerce_hcard_absolute_urls(hcard, source_url)
# [campegg] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# [campegg] File "/var/www/dotcom/venv/lib/python3.11/site-packages/mentions/tasks/incoming/remote.py", line 100, in coerce_hcard_absolute_urls
# [campegg] hcard.avatar = urljoin(source_url, hcard.avatar)
# [campegg] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# [campegg] File "/usr/lib/python3.11/urllib/parse.py", line 547, in urljoin
# [campegg] base, url, _coerce_result = _coerce_args(base, url)
# [campegg] ^^^^^^^^^^^^^^^^^^^^^^^
# [campegg] File "/usr/lib/python3.11/urllib/parse.py", line 130, in _coerce_args
# [campegg] raise TypeError("Cannot mix str and non-str arguments")
# [campegg] TypeError: Cannot mix str and non-str arguments```
# [campegg] For reference, I'm using `django-wm` to process webmentions on my site. These are the files referenced in the traceback above:
# [campegg] Both instances that I've received failed incoming webmentions from have been running Mastodon 4.1.4, if that makes a difference. I really don't know what to look at (or for) next and would appreciate any suggestions.
# [snarfed] hey [campegg]! hard for me to debug based on an internal stack trace from your site. looks like BF has gotten 2xxes for all of your recent wms: https://fed.brid.gy/web/campegg.com/notifications . based on "tasks" in the stack trace, I'm guessing you handle wms async?
# [campegg] Like these?
# [campegg] Sorry, formatting sucks:
# [snarfed] I expect django-wm uses mf2py, and they switched img alt support on by default in 2.0.1 back in Dec, https://github.com/microformats/mf2py/blob/main/CHANGELOG.md#201---2023-12-07 , so if your site upgraded mf2py recently, that's probably why. maybe file a bug w/django-wm or try to fix it there yourself?
shoesNso_ and gRegor joined the channel
# [campegg] [snarfed] thank you! Just so I'm clear, because mf2py now returns an object (dict?) instead of a string, and that's what django-wm is choking on? (i.e. it's expecting a string and getting an object?)
# [campegg] Great, thanks! Will file an issue (and probably mess about with it a bit as well)
# [campegg] And yes, I did upgrade (or at least mf2py was upgraded by a package I installed) to 2.0.1
# [campegg] [snarfed]++
# [campegg] [snarfed] thanks again! Downgrading to mf2py 1.1.3 worked
[benatwork] joined the channel
# capjamesg[d] How do I add a custom ligature to a font?
# capjamesg[d] I want the pe hybrid I linked in #indieweb-chat to be a thing.
CRISPR, [timothy_chambe], tPoltergeist and [jamietanna] joined the channel
# [jamietanna] [snarfed] any idea why https://www.jvt.me/mf2/2024/01/xwghg/ may not be showing up as a reply to the toot it's replying to?
# [jamietanna] (it was accidentally posted as a note, and then updated)
tPoltergeist, gxt and gRegor joined the channel
tPoltergeist joined the channel
# [snarfed] BF did deliver an Update to https://tenforward.social/users/0xdariaj/inbox, with the inReplyTo, so that's my guess 😐
gRegorLove_, gRegorLove__ and Xe joined the channel