add og / opengraph / discord embeds

This commit is contained in:
ed 2024-05-01 23:40:56 +00:00
parent b6cf2d3089
commit ea270ab9f2
9 changed files with 248 additions and 18 deletions

View file

@ -1727,7 +1727,11 @@ class AuthSrv(object):
if self.args.e2d or "e2ds" in vol.flags:
vol.flags["e2d"] = True
for ga, vf in [["no_hash", "nohash"], ["no_idx", "noidx"]]:
for ga, vf in [
["no_hash", "nohash"],
["no_idx", "noidx"],
["og_ua", "og_ua"],
]:
if vf in vol.flags:
ptn = re.compile(vol.flags.pop(vf))
else: