Opened 9 years ago
Closed 7 years ago
#962 closed enhancement (invalid)
ActivityIntermediator.TYPES doesn't allow plugins to use activities
|Reported by:||Jessica Tallon||Owned by:|
|Component:||programming||Keywords:||federation, activities, plugins|
With #905 we now have the activities that can be created when the user does something on GMG. However there is a fixed TYPES dictionary which doesn't allow plugins to add their models as objects which take part in activites.
The way this could be changed is to have a ActivityTypes table which is this map. The current TYPES can be populated by the FOUNDATIONS system and plugins can add themsleves to this table.
Change History (1)
comment:1 by , 7 years ago
|Status:||new → closed|
We no longer use ActivityIntermediator we now use a generic ForeignKey system where we have something similiar to Django's "Contenttype"s system, ours having a GenericModelReference. This can be used with plugins provided the plugin has a integer primary key called "id".