rewrite_media_domain does not rewrite user image URLs #1064
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma#1064
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
No response
Version
Stable v3.17.0
PostgreSQL version
18
What were you trying to do?
I am trying to rewrite the media domain on every post from my local instance.
What did you expect to happen?
Changes the host of the media
What actually happened?
Error
Logs
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
looks like the task currently can't handle local
Imageobjects (used for user image (profile, banner, background) uploads;Documentis used for all local attachments) to me. However, in that case it should have already failed everywhere when testing on ihba. Am I missing something? cc @floatingghosthmm I don't think you're missing anything, I don't recall it failing at any point on ihba
but it is possible that I manually updated something prior to running the rewrite task
should be just as simple as changing the
"Document"match to also accept"Image"then. Made and merged a PR for this.@Yonle please upgrade to develop and try again. Should you experience further problems with the task, reopen this issue with the new error details and/or further information.
That commit fixed it. Thanks!
Apparently, it did updated posts urls, but user profile (profile pic, banner, wallpaper) is not getting updated.
however i think it's safe as of now.
[bug] rewrite_media_domain failed to runto rewrite_media_domain does not rewrite user image URLsAhh right, i was only thinking of how to correctly update the
objectstable.Due to the subpar media db scheme (one day, hopefully there’ll be time for #765) we have
Imageentries inobjectstracking that a user image was uploaded, butusersentries do not reference it instead duplicating URLs. Meaning, everything the task currently does is correct, but it also needs an additional pass over localusersto updated their (duped) avatar, banner and background URLs.