mirror of
https://github.com/flarum/framework.git
synced 2025-06-01 13:03:16 +08:00
3c7078b423eea062f5b71ce97fea435d4d03239a

Originally the user activity feed was implemented using UNIONs. I was looking at make an API to add activity “sources”, or extra UNION queries (select from posts, mentions, etc.) but quickly realised that this is too slow and there’s no way to make it scale. So I’ve implemented an API which is very similar to how notifications work (see previous commit). The `activity` table is an aggregation of stuff that happens, and it’s kept in sync by an ActivitySyncer which is used whenever a post it created/edited/deleted, a user is mentioned/unmentioned, etc. Again, the API is very simple (see Core\Activity\PostedActivity + Core\Handlers\Events\UserActivitySyncer)
Flarum Core
This repository contains the core code of Flarum. If you want to install Flarum, visit the main Flarum repository.
Contributing
Interested in contributing to Flarum? Read the Contribution Guide!
Description
Languages
PHP
60.5%
TypeScript
26.2%
JavaScript
7.9%
Less
4.4%
Blade
0.8%
Other
0.2%