update nsfwCensorImage suggestion in config/description.exs #837

Open
norm wants to merge 1 commit from norm/akkoma:update-nsfwCensorImage into develop
Contributor

Turns out this is also used to set the default values in adminfe, so
update this to the correct URL for the NSFW banner so that it doesn't
break if you reset this value.

Turns out this is also used to set the default values in adminfe, so update this to the correct URL for the NSFW banner so that it doesn't break if you reset this value.
norm added 1 commit 2024-10-17 06:45:21 +00:00
update nsfwCensorImage suggestion in config/description.exs
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
be692e3a59
Turns out this is also used to set the default values in adminfe, so
update this to the correct URL for the NSFW banner so that it doesn't
break if you reset this value.
Member

It seems like the hex id bit gets generated at frontend build time. Not sure what caused it to change, but it might be more future proof to leave suggestions empty just letting the frontend’s default fallback select the currently correct path

The base file in the frontend repo is src/assets/nsfw.png and it’s included as import nsfwImage from '../../assets/nsfw.png' in src/components/attachment/attachment.js for use as the default fallback

It seems like the hex id bit gets generated at frontend build time. Not sure what caused it to change, but it might be more future proof to leave suggestions empty just letting the frontend’s default fallback select the currently correct path The base file in the frontend repo is `src/assets/nsfw.png` and it’s included as `import nsfwImage from '../../assets/nsfw.png'` in `src/components/attachment/attachment.js` for use as the default fallback
norm force-pushed update-nsfwCensorImage from be692e3a59 to e4332d06b5 2024-10-20 05:01:47 +00:00 Compare
Author
Contributor

Setting the default URL to a blank string instead so it will indeed use the fallback set in the FE

Setting the default URL to a blank string instead so it will indeed use the fallback set in the FE
Oneric approved these changes 2024-10-26 21:55:56 +00:00
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u update-nsfwCensorImage:norm-update-nsfwCensorImage
git checkout norm-update-nsfwCensorImage
Sign in to join this conversation.
No description provided.