You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/models/agents/data_output_agent.rb
+93-22Lines changed: 93 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
moduleAgents
2
2
classDataOutputAgent < Agent
3
+
includeWebRequestConcern
4
+
3
5
cannot_be_scheduled!
4
6
5
7
descriptiondo
@@ -22,6 +24,7 @@ class DataOutputAgent < Agent
22
24
* `template` - A JSON object representing a mapping between item output keys and incoming event values. Use [Liquid](https://github.com/cantino/huginn/wiki/Formatting-Events-using-Liquid) to format the values. Values of the `link`, `title`, `description` and `icon` keys will be put into the \\<channel\\> section of RSS output. Value of the `self` key will be used as URL for this feed itself, which is useful when you serve it via reverse proxy. The `item` key will be repeated for every Event. The `pubDate` key for each item will have the creation time of the Event unless given.
23
25
* `events_to_show` - The number of events to output in RSS or JSON. (default: `40`)
24
26
* `ttl` - A value for the \\<ttl\\> element in RSS output. (default: `60`)
27
+
* `push_hubs` - Set to a list of PubSubHubbub endpoints you want to publish every update to. (default: none) Note that publishing updates will make your feed public. Popular hubs include [Superfeedr](https://pubsubhubbub.superfeedr.com/) and [Google](https://pubsubhubbub.appspot.com/).
25
28
26
29
If you'd like to output RSS tags with attributes, such as `enclosure`, use something like the following in your `template`:
0 commit comments