-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add missing flarum/tags
as optional dependency
#104
fix: add missing flarum/tags
as optional dependency
#104
Conversation
flarum/tags
dependency
Hi! Thanks for the PR. The idea of the current setup is that no other extensions are required to be installed. Are you trying to fix #98 or are you experiencing a different issue with the tags extension? |
Hey @jaspervriends thanks for getting back to me. Yes I was first and foremost talking about the issue reported in #98. Now it seems like the line causing the issue there wasn't needed in the first place and got removed, so that in itself is resolved. There are other parts in the codebase though that build upon tags, so I think the way to go here is add I would also suggest making use of the Conditional Extender and cleaning up extend.php a little. Would you be okay with this approach? Will as a result require flarum/core v1.8.3 or newer. Happy to propose that in a PR |
The line indeed wasn't actively in use, but the idea behind it was to be able (see https://community.v17.dev/knowledgebase/46
Hmm that's a good point, but if I remember correct, the SEO-tags are starting to load as soon the content is being rendered, so at that point everything should be initialized already right? 🤔 https://github.com/v17development/flarum-seo/blob/master/extend.php#L39
I think that would be great, but I would suggest doing when making the extension compatible for Flarum 2.0 (since that would be a great time to drop support for 1.x). |
e169340
to
0f447ce
Compare
flarum/tags
dependencyflarum/tags
as optional dependency
Sorry, I was referring to My brief research in the codebase showed that any logic which interacts with flarum-seo/src/Page/TagPage.php Lines 58 to 63 in 02fd518
To make sure that I updated this PR to add |
Ah check! Got it. Thanks for the update and explanation, I've merged it! Will tag a new version :) |
The extension will fail to initialize in some cases