Browse Source

Some more voodoo

master
The Dod 1 year ago
parent
commit
f6ec2c4188
2 changed files with 5 additions and 2 deletions
  1. 3
    1
      mymastotag.py
  2. 2
    1
      templates/index.html

+ 3
- 1
mymastotag.py View File

@@ -44,4 +44,6 @@ def my_masto_tag(lang, instance, user, tag):
44 44
         e['has_images'] = not not images
45 45
         e['videos'] = videos
46 46
         e['has_videos'] = not not videos
47
-    return render_template('index.html', lang=lang, is_rtl=is_rtl, title=title, og_image=og_image or url_for('static', filename='hashtag.png', _external=True), feed=feed)
47
+    return render_template('index.html', lang=lang, is_rtl=is_rtl, title=title,
48
+                           og_image=og_image or url_for('static', filename='hashtag.png', _external=True),
49
+                           updated_time=int(time.time()), feed=feed)

+ 2
- 1
templates/index.html View File

@@ -6,8 +6,9 @@
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1">
7 7
     <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
8 8
     <link rel="stylesheet" href="{{ url_for('static', filename='css') }}/bootstrap{% if is_rtl %}-rtl{% endif %}.min.css">
9
-    <meta property="og:image" itemprop="image" content="{{og_image|default(url_for('static', filename='hashtag.png', _external=True))}}">
9
+    <meta property="og:image" itemprop="image" content="{{og_image|default(url_for('static', filename='hashtag.png', _external=True))}}" />
10 10
     <meta property="og:type" content="website" />
11
+    <meta property="og:updated_time" content="{{updated_time}}" />
11 12
   </head>
12 13
   <body>
13 14
     <div class="container">

Loading…
Cancel
Save