Store full non-hashed auto-title url in setting value

This commit is contained in:
jesopo 2019-04-24 15:07:02 +01:00
parent 71eb640fbd
commit df42f1d9c5

View file

@ -44,15 +44,15 @@ class Module(ModuleManager.BaseModule):
first_details = event["channel"].get_setting(setting, None) first_details = event["channel"].get_setting(setting, None)
if first_details: if first_details:
first_nickname, first_timestamp = first_details first_nickname, first_timestamp, _ = first_details
timestamp_parsed = utils.iso8601_parse(first_timestamp) timestamp_parsed = utils.iso8601_parse(first_timestamp)
timestamp_human = utils.datetime_human(timestamp_parsed) timestamp_human = utils.datetime_human(timestamp_parsed)
message = "%s (first posted by %s at %s)" % (title, message = "%s (first posted by %s at %s)" % (title,
first_nickname, timestamp_human) first_nickname, timestamp_human)
else: else:
event["channel"].set_setting(setting, event["channel"].set_setting(setting,
[event["user"].nickname, [event["user"].nickname, utils.iso8601_format_now(),
utils.iso8601_format_now()]) url])
self.events.on("send.stdout").call(target=event["channel"], self.events.on("send.stdout").call(target=event["channel"],