update nsfwCensorImage suggestion in config/description.exs #837

Merged
floatingghost merged 1 commit from norm/akkoma:update-nsfwCensorImage into develop 2025-01-05 15:37:09 +00:00
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.
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.
Owner

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
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
to e4332d06b5
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
ci/woodpecker/pull_request_closed/build-amd64 Pipeline is pending approval
ci/woodpecker/pull_request_closed/docs Pipeline is pending approval
ci/woodpecker/pull_request_closed/build-arm64 Pipeline is pending approval
ci/woodpecker/pull_request_closed/lint Pipeline is pending approval
ci/woodpecker/pull_request_closed/test Pipeline is pending approval
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
floatingghost deleted branch update-nsfwCensorImage 2025-01-05 15:37:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma!837
No description provided.