mirror of
https://github.com/maubot/rss.git
synced 2025-02-14 14:02:04 -05:00
Fix replying to template update
This commit is contained in:
parent
334acf141e
commit
be90ee5465
@ -307,7 +307,8 @@ class RSSBot(Plugin):
|
||||
await evt.reply("This room is not subscribed to that feed")
|
||||
return
|
||||
self.db.update_template(feed.id, evt.room_id, template)
|
||||
sub.notification_template = Template(template)
|
||||
sub = Subscription(feed_id=feed.id, room_id=sub.room_id, user_id=sub.user_id,
|
||||
notification_template=Template(template), send_notice=sub.send_notice)
|
||||
sample_entry = Entry(feed.id, "SAMPLE", datetime.now(), "Sample entry",
|
||||
"This is a sample entry to demonstrate your new template",
|
||||
"http://example.com")
|
||||
|
Loading…
x
Reference in New Issue
Block a user