Hi all!

I'm pretty new to status.net, so please let me know if I got something wrong.

I'm currently trying to write a plugin that lets me track changes to a wiki
using a status.net instance. To do that, I'm modeling events on the wiki using
verbs from the activitystream vocabulary, similar to the way status.net does it
on the atompub interface.

For normal status.net messages, the verb is POST and the object-type is NOTE.
For what i want do do, I want the object type ARTICLE and verbs like EDIT, MOVE,
DELETE, etc. I'm trying to use the new MicroApp plugin interface to implement
this, but I'm running into a problem:

Notice objects have an object type assigned, but no verb. Similarly, MicroApp
uses the object-type to route Notices and Activity objects to the appropriate
Plugin, and ignores the verb. So, when the plugin gets a notice with object-type
ARTICLE, it doesn't know which verb to use with it... was that Notice generated
from an EDIT, or a MOVE? I don't see a place in the Notice to store that info.

It seems there are two ways to think about statusnet messages, and I'm not sure
which one is better:

1) status.net messages *are* activities. In that case, the verb is always POST.
If I want to track changes on my wiki, i give it an object-type of WIKI_ACTIVITY
or some such, and attach an extra ActivityObject with object-type ARTICLE and
whatever verb applies, EDIT, MOVE, DELETE, etc.

2) or status.net messages *inform* about activities. In that case, the type of
the notice itself would become ARTICLE and the verb would be the verb that
applied to the wiki article. To work with that, the Notice object needs to track
the verb, and MicroApp needs to consider the verb for routing.

What do you think, what's the best way to model this?

Btw, I'm a bit confused about Activity->objects. An <entry> can *have* an
object-type, and it contain more tags which have object types, e.g. <author>. Do
I get an ActivityObject for each? Or only the nested ones? Is the *role* of the
object (e.g. author) also represented in a uniform way somehow, or do I have to
look at XML element?

Thanks
Daniel
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to