Add use Friendica\App to addons #412
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#412
Loading…
Reference in a new issue
No description provided.
Delete branch "improvement/move-app-to-src"
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?
Paired with https://github.com/friendica/friendica/pull/3413, this PR has to be merged on the 3.5.2 release day.
Hmm ... this is a problem for all users on the develop branch. Can this code line be wrapped in an "if" that checks for the version?
No, and even if it was possible, the
App
class wouldn't be available because it's not included by default anymore.We probably need a develop branch for addons as well then.
I guess there is a simple solution that will work with both branches: We don't change anything.
I guess the problem exists only when the line
$a = new App;
is executed in these two files, am I right?This line may be executed on a master branch - but never on the develop branch.
On the develop branch we already removed the old background execution.
Normally you will not find these lines on a background script in the develop branch anymore:
I trust you with this, we can always reopen this if somebody complains about pump.io or Twitter.
Pull request closed