Closed MegaKeegMan closed 10 months ago
Hi! Looks like the issue in that post is the u-photo
, which Bridgy fetches in order to attach it to your Mastodon post. You have it on a div
that includes both the img
and the caption, so they both end up in the parsed photo
property. You can see that here: https://pin13.net/mf2/?url=https://portside.org/2023-07-11/j-robert-oppenheimers-tragedy-and-ours-0
A u-*
property should generally be directly on an element with href
or src
. More background: https://indieweb.org/photo#How_to_markup . If you move u-photo
here to the img
, it should work.
I will try it out and report back here by the end of the day. Thanks for the quick reply.
This looks to have fixed our 404 issues, but unfortunately I have unlocked a new error (or an old one) that appears to have been the topic of this other issue: #894
W 2023-08-04 17:00:08.306322+00:00 Error 403, response body: '{"error":"This action is outside the authorized scopes"}'
I am not sure if you want to re-open this other issue or if I should open a new one.
Looks like your Mastodon account is disconnected: https://brid.gy/mastodon/@portside@mastodon.social . Try clicking the button to re-enable publishing?
I had reconnected it just before trying this. Not sure if it did not connect properly or if it disconnected while or after this attempt?
Looks like this one is a bug. Thanks for reporting! Will fix.
@MegaKeegMan in the meantime, if you click on the right button on https://brid.gy/mastodon/@portside@portside.social instead of the left, that one should get you the right Mastodon permissions you need to upload pictures and post.
Note to myself: the bug here is that we don't clear features
when we re-auth with Mastodon. We need to do that because every time we auth with Mastodon and get an access token, it resets the approved OAuth scopes to just the ones in that latest request, ignoring any previously authed scopes. We handle this when we get a micropub token, below, but not in normal auth.
(Specifically here, this account had both listen
and publish
, then got disconnected, then re-authed with just listen
, but features
stayed the same.)
OK, this one was tricky, I tried a number of different paths that didn't pan out, but I think it's finally squashed now:
SCOPES_RESET
is True, when re-authing, only turn on the feature we added. don't merge in any of the others since we didn't request scopes for them.util.maybe_add_or_delete_source
that it redirects, so any code after it won't run.Thanks for your patience, all!
Articles published on site have failed to post via bridgy for about the past month. In the error log, it appears that bridgy is somehow constructing a url based on the text in our photo caption, but it is not apparent why this would be happening. Here is the error:
That above is absolutely not the source link for my post.
However, this is the actual link of the post, and what is in the href of the u-url anchor: https://portside.org/2023-07-11/j-robert-oppenheimers-tragedy-and-ours-0
Furthermore, indiewebify seems to be validating the markup of this post: https://indiewebify.me/validate-h-entry/?url=https%3A%2F%2Fportside.org%2F2023-07-11%2Fj-robert-oppenheimers-tragedy-and-ours-0
And I can verify that our markup has not changed since January. This leads me to suspect that maybe there is an issue with bridgy's parser, or there have been changes that I am unaware of that would require me to update my markup.