Comments (4)
But I don't think the parent route's before_action runs for the sub-routes?
Tbh you'll just have to run and test the different scenarios, as it's been well over a year since I've been in this codebase, so can't really remember specifics.
a quick win
π΅Quick win == technical debt.
But feel free to create the PR in the direction you would naturally take, and then we could discuss specifics on the PR itself.
from listed.
Would the fix be as simple as adding:
Seems like it! Perhaps we can add this to any author page that should be stylized and remove it from being exclusive to posts_controller.show method.
from listed.
Sounds good! Thanks for clarifying.
Looks like we already add the styles and meta images to all author pages in the authors_controller
:
But I don't think the parent route's before_action
runs for the sub-routes?
That's the only way I can explain the nested :guestbook
path being the only one with no custom CSS or favicon. The nested :posts
path required adding this to the posts_controller
so that it didn't have the same issue (I think?):
@styles = @post.author.styles
set_meta_images_for_author(@post.author)
Even though similar code exists in the parent authors_controller
.
I think a quick win would be to just add a similar code block to the guestbook_entries_controller
's before_action
.
Will make a PR, let me know if you're happy with the proposed changes.
from listed.
This one's probably been fixed with #68
from listed.
Related Issues (20)
- [Listed.to] Reference to "Extended" plan in Custom domain settings HOT 2
- [Listed.to] Can't see caret on <input>s when dark mode is enabled HOT 1
- Support SSL certificate with Subject Alternative Names HOT 1
- Listed.to session cookie doesn't have Secure flag set HOT 1
- Listed.to server supports TLS 1.0 and 1.1
- listed.to homepage not update HOT 3
- Same-document hyperlinks support HOT 2
- Stripping out forms
- Secret passed as a param risks MITM attack HOT 3
- Request for GFM checklist suport
- Scroll position kept between main blog page and articles
- fenced code block colors difficult to see in dark mode
- Problem with Verify Subscription HOT 1
- Allow usage from self-hosted Standard Notes instances
- Disable email subscription doesn't prevent subscriptions HOT 1
- Custom css not working HOT 1
- Rust code block comment syntax is not highlited properly
- Listed down? HOT 2
- [SUGGESTION] ActivityPub support
- Missing LICENSE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from listed.