From 2b50dcd709656870e30825844792c421d3826aff Mon Sep 17 00:00:00 2001 From: John Smith Date: Thu, 3 Jan 2019 16:12:25 +0700 Subject: turn on parse wall and oob by default --- extensions/attachments.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/attachments.py b/extensions/attachments.py index 7fd30cf..6a02b90 100644 --- a/extensions/attachments.py +++ b/extensions/attachments.py @@ -9,14 +9,15 @@ from printer import * VK_AUDIO_SEARCH_LINK = "https://vk.com/search?c[q]=%s&c[section]=audio" WALL_LINK = "https://vk.com/wall%(to_id)s_%(id)s" WALL_COMMENT_LINK = "https://vk.com/wall%(owner_id)s_%(post_id)s?w=wall%(owner_id)s3_%(post_id)s" + PHOTO_SIZES = ("src_xxxbig", "src_xxbig", "src_xbig", "src_big", "src", "url", "src_small") STICKER_SIZES = ("photo_256", "photo_128", "photo_64") ATTACHMENT_REGEX = re.compile(r"^(Photo|Document|Sticker)\:\s(ā€œ.+?ā€\sā€”\s)?"\ r"(?Phttp[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+$)", re.UNICODE) -GLOBAL_USER_SETTINGS["parse_wall"] = {"value": 0, "label": "Parse wall attachments"} -GLOBAL_USER_SETTINGS["make_oob"] = {"value": 0, "label": "Allow OOB for attachments", +GLOBAL_USER_SETTINGS["parse_wall"] = {"value": 1, "label": "Parse wall attachments"} +GLOBAL_USER_SETTINGS["make_oob"] = {"value": 1, "label": "Allow OOB for attachments", "desc": "Attach incoming files as attachments,\nso they would be displayed by your client (if supported)"} -- cgit v1.2.3