fof / follow-tags
Follow tags and be notified of new discussions and replies
Package info
github.com/FriendsOfFlarum/follow-tags
Type:flarum-extension
pkg:composer/fof/follow-tags
Fund package maintenance!
Requires
- flarum/core: ^2.0.0
- flarum/tags: ^2.0.0
Requires (Dev)
- flarum/gdpr: ^2.0.0
- flarum/mentions: ^2.0.0
- flarum/phpstan: ^2.0.0
- flarum/subscriptions: ^2.0.0
- flarum/tags: ^2.0.0
- flarum/testing: ^2.0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
- 2.x-dev
- 2.0.0
- 2.0.0-beta.7
- 2.0.0-beta.6
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 1.x-dev
- 1.3.0
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.7
- 0.4.6
- 0.4.5.x-dev
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- dev-im/frontend-tests
- dev-im/share-subscription-state
- dev-im/subscription-attributes
- dev-im/hide-subscription-everywhere
- dev-im/fix-n1-queries
- dev-ds/fix-wrong-tag-state
- dev-beta15
- dev-beta13
This package is auto-updated.
Last update: 2026-10-17 12:23:43 UTC
README
A Flarum extension. Follow tags and be notified of new discussions.
Features
- Follow, lurk, hide or ignore tags, and be notified of new discussions and replies.
- Optionally prompt new users to choose tags to follow after registration (off by default). The list of tags offered in the prompt is configurable, and the prompt can also be reopened from a button on the Following page.
- Optionally show all discussions on the Following page for guests, and offer the Following page as a homepage option (under Basics).
This extension includes the functionality previously provided by clarkwinkelmann/flarum-ext-follow-tags-prompt, and declares replace on that package so the two can never be installed at once. If you were using it, a regular composer update followed by php flarum migrate && php flarum cache:clear swaps it out and imports its settings and per-user state automatically; you can then remove the old package from your composer.json requirements with composer remove clarkwinkelmann/flarum-ext-follow-tags-prompt.
For developers
Other extensions can save their own fields alongside a user's tag subscription.
Backend. Users who cannot edit a tag may only send subscription when they PATCH /api/tags/{id}. To let them send your attribute with it, add the attribute to TagResource with a writable() check that refuses guests, then allow it:
use FoF\FollowTags\Extend\Subscription; return [ (new Flarum\Extend\Conditional()) ->whenExtensionEnabled('fof-follow-tags', fn () => [ (new Subscription())->attribute('myAttribute'), ]), ];
Requests must still include subscription, and may not change the tag's own fields or relationships.
Events. FoF\FollowTags\Event\SubscriptionChanging is dispatched before a subscription is saved: listeners can change $event->state, and $event->request holds the request. FoF\FollowTags\Event\SubscriptionChanged is dispatched after it is saved.
Frontend. Extend requestData() on the subscription modal to send your attribute:
import { extend } from 'flarum/common/extend'; extend('ext:fof/follow-tags/forum/components/SubscriptionModal', 'requestData', function (data) { data.myAttribute = this.myValue; });
formOptionItems() is an ItemList for adding your own controls to the modal.
Installation
Install with composer:
composer require fof/follow-tags:"*"
Updating
composer update fof/follow-tags:"*"
Links
An extension by FriendsOfFlarum.