mirror of
https://github.com/maubot/rss.git
synced 2025-04-26 09:59:10 -04: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")
|
await evt.reply("This room is not subscribed to that feed")
|
||||||
return
|
return
|
||||||
self.db.update_template(feed.id, evt.room_id, template)
|
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",
|
sample_entry = Entry(feed.id, "SAMPLE", datetime.now(), "Sample entry",
|
||||||
"This is a sample entry to demonstrate your new template",
|
"This is a sample entry to demonstrate your new template",
|
||||||
"http://example.com")
|
"http://example.com")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user