This is the v1.7.4 release of Mbin and it brings a lot of documentation updates and bug fixes (especially in the backend): documentation for the Nginx setup has been altered a lot (allowing the server admin to rate limit on Nginx), PostgreSQL has also seen a few edits, most Symfony commands are now documented, we improved the federation backend, we "revive" dead instances when we get activities from them, the search experience is now improved when searching for URLs, we now support strike through HTML to markdown and a lot more.
The most important thing for developers is that the automated tests are now working and required for PRs to be merged.
A total of 62 pull requests from 10 contributors (excluding dependabot) have been merged.
Comparison to previous stable version v1.7.3:
DB migrations | New ENV vars | Admin guide changes | Suggest cache clearing | New dependencies |
---|---|---|---|---|
❌ | ❌ | ☑️ | ❌ | ❌ |
Upgrade Instructions
For Docker
- Get the official image or checkout the code and build it locally
- Stop all containers
docker compose down
- Start all containers
docker compose up -d
- execute the command to remove the default domain from entries that are not local:
docker compose exec php php bin/console mbin:update:local-domain
For Bare Metal
- Login as the mbin/kbin user:
su mbin
- Go to your repo
cd /var/www/mbin
- Get the new release:
git fetch && git checkout v1.7.4
- Run the update script:
bash bin/post-upgrade
. - Run
exit
so we are back at the root user (or put a sudo in front of every command) - flush your redis db by running
redis-cli
, type inAUTH [YOUR PASSWORD]
and thenFLUSHDB
- clear your opcache by reloading php fpm
systemctl restart php8.2-fpm
(or for PHP 8.3:systemctl restart php8.3-fpm
) - Restart the messengers:
supervisorctl restart messenger:*
- Login as the mbin/kbin user:
su mbin
again - Run the command to remove the default domain from entries that are not local:
php bin/console mbin:update:local-domain
What's Changed
- Add default combined log format by @melroy89 in #1238
- Throw UnrecoverableMessageHandlingException on 4xx by @BentiGorlich in #1235
- Improved action workflow by @melroy89 in #1241
- Don't federate anything from the random magazine by @BentiGorlich in #1236
- Fix min length issues for magazine description and rules by @BentiGorlich in #1245
- Improve search experience when searching for AP urls by @BentiGorlich in #1244
- Fix mentions popping up in entry by @BentiGorlich in #1243
- Bump phpstan/phpdoc-parser from 1.33.0 to 2.0.0 by @dependabot in #1223
- Bump phpstan/phpstan from 1.12.10 to 2.0.2 by @dependabot in #1239
- Bump endroid/qr-code from 5.1.0 to 6.0.3 by @dependabot in #1226
- Bump aws/aws-sdk-php from 3.327.1 to 3.330.0 by @dependabot in #1240
- Improve contributing docs by @melroy89 in #1246
- Order the menu items by @melroy89 in #1250
- Rename 3rd party dev - > App developers by @melroy89 in #1252
- Fix CONTRIBUTING.md by @melroy89 in #1253
- Expose local subscriber count to the API by @BentiGorlich in #1251
- Fix reports not triggering push notifications by @BentiGorlich in #1249
- Fix error on new magazines for admins by @BentiGorlich in #1248
- Update minor package + major qr-code package by @melroy89 in #1247
- Check for banned instances + improved logging by @melroy89 in #1254
- Add remaining prefixes to logger on important files by @melroy89 in #1255
- Bump symfony/redis-messenger from 7.1.6 to 7.2.0 by @dependabot in #1260
- Bump symfony/security-bundle from 7.1.6 to 7.2.0 by @dependabot in #1261
- Translations update from Hosted Weblate by @weblate in #1257
- Bump phpstan/phpstan from 2.0.2 to 2.0.3 by @dependabot in #1262
- Bump doctrine/doctrine-fixtures-bundle from 3.6.2 to 3.7.0 by @dependabot in #1259
- Rename routes, serialization, utils controller and mixins to mbin by @melroy89 in #1256
- Translations update from Hosted Weblate by @weblate in #1264
- Update FAQ.md by @TheVillageGuy in #1263
- Bump twig/intl-extra from 3.15.0 to 3.16.0 by @dependabot in #1267
- Bump friendsofsymfony/jsrouting-bundle from 3.5.1 to 3.5.2 by @dependabot in #1270
- Bump symfony/cache from 7.1.9 to 7.2.0 by @dependabot in #1268
- Bump symfony/ux-twig-component from 2.21.0 to 2.22.0 by @dependabot in #1269
- Fix data action kbin -> mbin rename by @melroy89 in #1278
- Bump league/commonmark from 2.5.3 to 2.6.0 in the php group by @dependabot in #1279
- Update 04-image_metadata_cleaning.md by @TheVillageGuy in #1266
- Include last receive in the formula for dead instances by @BentiGorlich in #1277
- Add new html to markdown converter for strikethrough support by @BentiGorlich in #1275
- Improve command descriptions, add docs by @BentiGorlich in #1274
- Remove using the AP id as the URL by @BentiGorlich in #1281
- Add a magazine create command by @BentiGorlich in #1273
- Make dependabot serve security updates for all npm packages by @BentiGorlich in #1282
- Fix docs formatting by @BentiGorlich in #1283
- Fix null error on EntryPageFactory by @BentiGorlich in #1289
- Improve CLI docs page by @melroy89 in #1288
- Add the new CLI section to the top level readme by @melroy89 in #1290
- Bump symfony/rate-limiter from 7.1.8 to 7.2.0 by @dependabot in #1285
- Bump phpdocumentor/reflection-docblock from 5.6.0 to 5.6.1 by @dependabot in #1284
- Bump symfony/expression-language from 7.1.6 to 7.2.0 by @dependabot in #1287
- Bump symfony/browser-kit from 7.1.6 to 7.2.0 by @dependabot in #1286
- Bump symfony/amqp-messenger from 7.1.6 to 7.2.0 by @dependabot in #1296
- Bump pagerfanta/doctrine-dbal-adapter from 4.7.0 to 4.7.1 by @dependabot in #1295
- Bump symfony/ux-autocomplete from 2.21.0 to 2.22.1 by @dependabot in #1293
- Translations update from Hosted Weblate by @weblate in #1298
- Add pdo_pgsql PHP extenstion by @melroy89 in #1303
- Bump symfony/yaml from 7.1.6 to 7.2.0 by @dependabot in #1294
- Translations update from Hosted Weblate by @weblate in #1299
- Improve PostgreSQL config even further by @melroy89 in #1304
- Bump symfony/doctrine-messenger from 7.1.6 to 7.2.0 by @dependabot in #1308
- Bump symfony/security-csrf from 7.1.6 to 7.2.0 by @dependabot in #1306
- Bump twig/cssinliner-extra from 3.15.0 to 3.17.0 by @dependabot in #1305
- Bump symfonycasts/reset-password-bundle from 1.23.0 to 1.23.1 by @dependabot in #1307
- Update npm minor version packages by @melroy89 in #1311
- Update remaining npm packages + webpack update + tools directory by @melroy89 in #1312
- Add Timpibot to robots.txt by @melroy89 in #1314
- Improve Nginx access logs by @melroy89 in #1315
- Add two stage Nginx rate limit by @melroy89 in #1316
- Remove default local domain for entries by @BentiGorlich in #1280
- Get the integration tests up and running again by @BentiGorlich in #1300
- Fix Doctrine fixtures by @garrettw in #1321
- Add Devcontainer config (works with Codespaces) by @garrettw in #1320
- Fix NPM warnings by @garrettw in #1329
- Bump twig/intl-extra from 3.16.0 to 3.18.0 by @dependabot in #1334
- Bump symfony/dotenv from 7.1.6 to 7.2.0 by @dependabot in #1323
- Bump symfony/mime from 7.1.6 to 7.2.1 by @dependabot in #1325
- docs(contributor): contributors readme action update by @github-actions in #1339
- Fix NPM warnings, round 2 by @garrettw in #1332
- Updated sass code by @garrettw in #1328
- Devcontainer improvements by @garrettw in #1333
- docs(contributor): contributors readme action update by @github-actions in #1344
- Add additional checks for banned instances + various code improvements along the way by @melroy89 in #1258
- Enable multi-core parallel PHP CS Fixer by @melroy89 in #1345
- PHPStan (+PHPUnit) corrections, pt 1 by @garrettw in #1341
- Bump embed/embed from 4.4.13 to 4.4.15 by @dependabot in #1352
- Bump symfony/workflow from 7.1.6 to 7.2.0 by @dependabot in #1349
- Upgraded to Symfony v7.2.* and upgraded other minor packages as well by @melroy89 in #1353
- Translations update from Hosted Weblate by @weblate in #1358
- Bump nelmio/api-doc-bundle from 4.33.6 to 4.34.0 by @dependabot in #1359
- Add testcase for hashtag matching by @BentiGorlich in #1362
- Upgraded Caddy image to v2.9.1 by @melroy89 in #1363
- Add test case for liking a hashtag matched post by @BentiGorlich in #1364
- Bump the version to v1.7.4 by @BentiGorlich in #1365
New Contributors
Full Changelog: v1.7.3...v1.7.4