What is your end goal? On Tue, Dec 4, 2018 at 6:52 PM FreedomFighterSparrow < freedomfighterspar...@gmail.com> wrote:
> I'm trying to solve the following situation: I need to know, for each > article, > the last time it was updated by an actual human. MediaWiki keeps track of > the > last update to the page, but doesn't take into account whether it was > performed > by a bot or a human. > > Instead of querying the revision table every time, I thought of saving a > page > property and updating it on page save: > - Is the editor a human*? > - Yes: update the property. > - No: Do we already have a last real update date saved? > - Yes: do nothing (keep the last date) > - No: find the latest revision by a human and save the property > > > The most logical hook seemed to be 'PageContentSaveComplete' or maybe > 'PageContentInsertComplete', as I only want to do this if the save actually > went through (if it is failed by something, we shouldn't update). > My problem is, I don't seem to have a way to set a property from there... > > I really don't want to have to create my own table just for this. > Any ideas how to solve this? Maybe I'm going about it in a cockamamie way? > > Thanks, > - Dror > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l