Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@helldev.net>2019-01-03 12:12:25 +0300
committerJohn Smith <mrdoctorwho@helldev.net>2019-01-03 12:12:25 +0300
commit2b50dcd709656870e30825844792c421d3826aff (patch)
treedf6e8492b2be16b58e6c7a95bc3e12797a462fb3
parente3aad25a9ab8eb748698d16e7b52f160c37f3d03 (diff)
turn on parse wall and oob by default
-rw-r--r--extensions/attachments.py5
1 files 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"(?P<url>http[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)"}