OneAll System Feed

PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
This is a very cool function of the module, but is there a way to exclude specific Quota IDs from being added to the feed?

Thanks :)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

updated by @the-patria-company: 12/27/16 11:39:34AM
michael
@michael
8 years ago
7,715 posts
Please include setup instructions along with your question. Its unclear what the subject is. Im sure if I went searching I could probably locate something to fit the description, but to save me time and incorrect guesses.........

Thanks :)
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
OK, sorry for being vague. In the OneAll module > Tools > System Feed we can add a twitter account in order for site wide activity to be broadcast out to Twitter. This is a great marketing tool!

We do have some quotas that would prefer to remain private and I was wondering if there was a way that I could exclude those quotas from the system feed?

Thanks :)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
michael
@michael
8 years ago
7,715 posts
The function that fires the site wide system feed share action is jrOneAll_db_create_item_listener() found in:
/modules/jrOneAll/include.php

Currently it:
* checks the user is logged in,
* gets the linked network for the System Feed (if it exists)
* retrieves the owner of the created items info
* creates a 'share_action' queue.

There is no code in place to limit it to specific quotas.

There is an event that happens when the queue entry is created though: 'create_queue_entry', you could use the events and listeners system:

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1011/events-and-listeners

To listen for that event, then fire your own function to drop any items that were in a quota you didn't want being added.

Tags