remotes/1693045480750635534/spooky-22
Aevann1 2021-08-02 16:27:20 +02:00
parent b1991beb03
commit 7e9fc468fe
25 changed files with 70 additions and 80 deletions

View File

@ -18,6 +18,7 @@ services:
- CLOUDFLARE_KEY=vcxvdfgfc6r554etrgd
- TENOR_KEY=vcxvdfgfc6r554etrgd
- MAILGUN_KEY=vcxvdfgfc6r554etrgd
- MAILGUN_DOMAIN=rdrama.net
- admin_email=drama@rdrama.net
- FORCE_HTTPS=0
- DISCORD_SERVER_ID=vcxvdfgfc6r554etrgd

View File

@ -48,7 +48,7 @@ app.config['SQLALCHEMY_READ_URIS'] = [
]
app.config['SECRET_KEY'] = environ.get('MASTER_KEY')
app.config["SERVER_NAME"] = environ.get("domain", environ.get("SERVER_NAME", "")).strip()
app.config["SERVER_NAME"] = environ.get("domain").strip()
app.config["SHORT_DOMAIN"]=environ.get("SHORT_DOMAIN","").strip()
app.config["SESSION_COOKIE_NAME"] = "session_drama"
@ -115,26 +115,6 @@ Markdown(app)
cache = Cache(app)
Compress(app)
class CorsMatch(str):
def __eq__(self, other):
if isinstance(other, str):
if other in ['https://rdrama.net', f'https://{app.config["SERVER_NAME"]}']:
return True
elif other.endswith(".rdrama.net"):
return True
elif isinstance(other, list):
if f'https://{app.config["SERVER_NAME"]}' in other:
return True
elif any([x.endswith(".rdrama.net") for x in other]):
return True
return False
app.config["RATELIMIT_STORAGE_URL"] = environ.get("REDIS_URL").strip() if environ.get("REDIS_URL") else 'memory://'
app.config["RATELIMIT_KEY_PREFIX"] = "flask_limiting_"
app.config["RATELIMIT_ENABLED"] = True

View File

@ -7,12 +7,14 @@ from drama.helpers.lazy import lazy
from drama.__main__ import Base
from .mix_ins import *
from .flags import *
from os import environ
domain = environ.get("domain").strip()
class SubmissionAux(Base):
__tablename__ = "submissions_aux"
# we don't care about this ID
key_id = Column(BigInteger, primary_key=True)
id = Column(BigInteger, ForeignKey("submissions.id"))
title = Column(String(500))
@ -197,11 +199,11 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
@property
@lazy
def thumb_url(self):
if self.over_18: return "https://rdrama.net/assets/images/nsfw.png"
elif not self.url: return "https://rdrama.net/assets/images/default_thumb_text.png"
if self.over_18: return f"https://{domain}/assets/images/nsfw.png"
elif not self.url: return f"https://{domain}/assets/images/default_thumb_text.png"
elif self.thumburl: return self.thumburl
elif "youtu.be" in self.domain or "youtube.com" in self.domain: return "https://rdrama.net/assets/images/default_thumb_yt.png"
else: return "https://rdrama.net/assets/images/default_thumb_link.png"
elif "youtu.be" in self.domain or "youtube.com" in self.domain: return f"https://{domain}/assets/images/default_thumb_yt.png"
else: return f"https://{domain}/assets/images/default_thumb_link.png"
@property

View File

@ -14,6 +14,8 @@ from .clients import *
from drama.__main__ import Base, cache
from drama.helpers.security import *
domain = environ.get("domain").strip()
class User(Base, Stndrd, Age_times):
__tablename__ = "users"
id = Column(Integer, primary_key=True)
@ -441,12 +443,12 @@ class User(Base, Stndrd, Age_times):
@property
def banner_url(self):
if self.bannerurl: return self.bannerurl
else: return "https://rdrama.net/assets/images/default_bg.png"
else: return f"https://{domain}/assets/images/default_bg.png"
@cache.memoize(0)
def defaultpicture(self):
pic = random.randint(1, 50)
return f"https://rdrama.net/assets/images/defaultpictures/{pic}.png"
return f"https://{domain}/assets/images/defaultpictures/{pic}.png"
@property
def profile_url(self):

View File

@ -6,6 +6,8 @@ from functools import partial
from .get import *
from os import path
domain = environ.get("domain").strip()
_allowed_tags = tags = ['b',
'blockquote',
'br',
@ -66,7 +68,7 @@ def a_modify(attrs, new=False):
domain = parsed_url.netloc
attrs[(None, "target")] = "_blank"
if domain and not domain.endswith("rdrama.net"):
if domain and not domain.endswith(domain):
attrs[(None, "rel")] = "nofollow noopener"
# Force https for all external links in comments
@ -182,7 +184,7 @@ def sanitize(text, linkgen=False, flair=False):
else: emojisize = 30
for i in re.finditer(':(.{1,30}?):', sanitized):
if path.isfile(f'./drama/assets/images/emojis/{i.group(1)}.gif'):
sanitized = sanitized.replace(f':{i.group(1)}:', f'<img data-toggle="tooltip" title="{i.group(1)}" delay="0" height={emojisize} src="https://rdrama.net/assets/images/emojis/{i.group(1)}.gif"<span>')
sanitized = sanitized.replace(f':{i.group(1)}:', f'<img data-toggle="tooltip" title="{i.group(1)}" delay="0" height={emojisize} src="https://{domain}/assets/images/emojis/{i.group(1)}.gif"<span>')
sanitized = sanitized.replace("https://www.", "https://").replace("https://youtu.be/", "https://youtube.com/embed/").replace("https://music.youtube.com/watch?v=", "https://youtube.com/embed/").replace("/watch?v=", "/embed/").replace("https://open.spotify.com/", "https://open.spotify.com/embed/").replace("https://streamable.com/", "https://streamable.com/e/").replace("https://youtube.com/shorts/", "https://youtube.com/embed/")

View File

@ -9,11 +9,13 @@ from drama.helpers.wrappers import *
from drama.classes import *
from drama.__main__ import app
domain = environ.get("domain").strip()
mailgun_domain = environ.get("MAILGUN_DOMAIN").strip()
def send_mail(to_address, subject, html, plaintext=None, files={},
from_address="Drama <noreply@mail.rdrama.net>"):
from_address=f"Drama <noreply@mail.{domain}}>"):
url = "https://api.mailgun.net/v3/rdrama.net/messages"
url = f"https://api.mailgun.net/v3/{mailgun_domain}/messages"
data = {"from": from_address,
"to": [to_address],

View File

@ -10,6 +10,8 @@ from pusher_push_notifications import PushNotifications
from flask import *
from drama.__main__ import app, limiter
domain = environ.get("domain").strip()
choices = ['Wow, you must be a JP fan.', 'This is one of the worst posts I have EVER seen. Delete it.', "No, don't reply like this, please do another wall of unhinged rant please.", '# 😴😴😴', "Ma'am we've been over this before. You need to stop.", "I've known more coherent downies.", "Your pulitzer's in the mail", "That's great and all, but I asked for my burger without cheese.", 'That degree finally paying off', "That's nice sweaty. Why don't you have a seat in the time out corner with Pizzashill until you calm down, then you can have your Capri Sun.", "All them words won't bring your pa back.", "You had a chance to not be completely worthless, but it looks like you threw it away. At least you're consistent.", 'Some people are able to display their intelligence by going on at length on a subject and never actually saying anything. This ability is most common in trades such as politics, public relations, and law. You have impressed me by being able to best them all, while still coming off as an absolute idiot.', "You can type 10,000 characters and you decided that these were the one's that you wanted.", 'Have you owned the libs yet?', "I don't know what you said, because I've seen another human naked.", 'Impressive. Normally people with such severe developmental disabilities struggle to write much more than a sentence or two. He really has exceded our expectations for the writing portion. Sadly the coherency of his writing, along with his abilities in the social skills and reading portions, are far behind his peers with similar disabilities.', "This is a really long way of saying you don't fuck.", "Sorry ma'am, looks like his delusions have gotten worse. We'll have to admit him,", 'https://i.kym-cdn.com/photos/images/newsfeed/001/038/094/0a1.jpg', 'If only you could put that energy into your relationships', 'Posts like this is why I do Heroine.', 'still unemployed then?', 'K', 'look im gunna have 2 ask u 2 keep ur giant dumps in the toilet not in my replys 😷😷😷', "Mommy is soooo proud of you, sweaty. Let's put this sperg out up on the fridge with all your other failures.", "Good job bobby, here's a star", "That was a mistake. You're about to find out the hard way why.", 'You sat down and wrote all this shit. You could have done so many other things with your life. What happened to your life that made you decide writing novels of bullshit on reddit was the best option?', "I don't have enough spoons to read this shit", "All those words won't bring daddy back.", 'OUT!', "Mommy is soooo proud of you, sweaty. Let's put this sperg out up on the fridge with all your other failures."]
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
@ -527,7 +529,7 @@ def api_comment(v):
'notification': {
'title': f'New reply by @{v.username}',
'body': c.body,
'deep_link': f'https://rdrama.net{c.permalink}?context=5#context',
'deep_link': f'https://{domain}{c.permalink}?context=5#context',
},
},
},

View File

@ -18,8 +18,9 @@ from drama.__main__ import app, limiter, cache
from PIL import Image as PILimage
from .front import frontlist
with open("snappy.txt", "r") as f:
snappyquotes = f.read().split("{[para]}")
domain = environ.get("domain").strip()
with open("snappy.txt", "r") as f: snappyquotes = f.read().split("{[para]}")
@app.post("/publish/<pid>")
@is_not_banned
@ -333,7 +334,7 @@ def edit_post(pid, v):
user = g.db.query(User).filter_by(username=username).first()
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user)
for x in notify_users: send_notification(1046, x, f"@{v.username} has mentioned you: https://rdrama.net{p.permalink}")
for x in notify_users: send_notification(1046, x, f"@{v.username} has mentioned you: https://{domain}{p.permalink}")
return redirect(p.permalink)
@ -618,7 +619,7 @@ def submit_post(v):
embed = requests.get("https://graph.facebook.com/v9.0/instagram_oembed", params={"url":url,"access_token":environ.get("FACEBOOK_TOKEN","").strip(),"omitscript":'true'}, headers={"User-Agent":"Instagram embedder for Drama"}).json()["html"]
elif app.config['SERVER_NAME'] in domain:
matches = re.match(re.compile("^.*rdrama.net/post/+\w+/(\w+)(/\w+/(\w+))?"), url)
matches = re.match(re.compile(f"^.*{domain}/post/+\w+/(\w+)(/\w+/(\w+))?"), url)
post_id = matches.group(1)
comment_id = matches.group(3)
if comment_id: embed = f"https://{app.config['SERVER_NAME']}/embed/comment/{comment_id}"
@ -846,12 +847,12 @@ def submit_post(v):
user = g.db.query(User).filter_by(username=username).first()
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user)
for x in notify_users: send_notification(1046, x, f"@{v.username} has mentioned you: https://rdrama.net{new_post.permalink}")
for x in notify_users: send_notification(1046, x, f"@{v.username} has mentioned you: https://{domain}{new_post.permalink}")
if not new_post.private:
for follow in v.followers:
user = get_account(follow.user_id)
send_notification(2360, user, f"@{v.username} has made a new post: [{title}](https://rdrama.net{new_post.permalink})")
send_notification(2360, user, f"@{v.username} has made a new post: [{title}](https://{domain}{new_post.permalink})")
g.db.add(new_post)
g.db.commit()
@ -926,7 +927,7 @@ def submit_post(v):
n = Notification(comment_id=c.id, user_id=v.id)
g.db.add(n)
g.db.commit()
send_message(f"https://rdrama.net{new_post.permalink}")
send_message(f"https://{domain}{new_post.permalink}")
v.post_count = v.submissions.filter_by(is_banned=False, deleted_utc=0).count()
g.db.add(v)

View File

@ -2,6 +2,7 @@ from drama.mail import *
from drama.__main__ import app, limiter
from drama.helpers.alerts import *
domain = environ.get("domain").strip()
@app.get("/patrons")
@auth_desired
@ -77,7 +78,7 @@ def contact(v):
@app.post("/contact")
@auth_desired
def submit_contact(v):
message = f'This message has been sent automatically to all admins via https://rdrama.net/contact, user email is "{v.email}"\n\nMessage:\n\n' + request.form.get("message", "")
message = f'This message has been sent automatically to all admins via https://{domain}/contact, user email is "{v.email}"\n\nMessage:\n\n' + request.form.get("message", "")
send_admin(v.id, message)
return render_template("contact.html", v=v, msg="Your message has been sent.")

View File

@ -12,6 +12,8 @@ from flask import *
from drama.__main__ import app, limiter
from pusher_push_notifications import PushNotifications
domain = environ.get("domain").strip()
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
beams_client = PushNotifications(
@ -148,7 +150,7 @@ def message2(v, username):
'notification': {
'title': f'New message from @{v.username}',
'body': message,
'deep_link': f'https://rdrama.net/notifications',
'deep_link': f'https://{domain}/notifications',
},
},
},

View File

@ -243,7 +243,7 @@
{% endif %}
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="/votes?link=https://rdrama.net{{c.permalink}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="/votes?link={{c.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
{% if v and c.id in v.saved_comment_idlist() %}
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="javascript:void(0)" onclick="post('/unsave_comment/{{c.id}}', function(){window.location.reload(true);})"><i class="fas fa-save"></i>Unsave</a></li>
@ -410,7 +410,7 @@
<div class="modal-body">
<ul class="list-group comment-actions">
<li class="list-group-item"><a href="/votes?link=https://rdrama.net{{c.permalink}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
<li class="list-group-item"><a href="/votes?link={{c.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
{% if v and c.id in v.saved_comment_idlist() %}
<li class="list-group-item"><a href="javascript:void(0)" onclick="post('/unsave_comment/{{c.id}}', function(){window.location.reload(true);})"><i class="fas fa-save"></i>Unsave</a></li>

View File

@ -803,12 +803,12 @@
<meta property="og:type" content="article" />
<meta property="og:title" content="Drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta property="og:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta property="og:url" content="{{request.path | full_link}}">
<meta property="og:description" name="description" content="Dude bussy lmao">
<meta property="og:author" name="author" content="@drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">

View File

@ -26,11 +26,6 @@
</tr>
</table>
<p>Please note that Drama will never ask you for your email, password, or two-factor token via email, text, or phone.</p>
<p>If you have any questions, feel free to <a href="mailto:hello@rdrama.net">email the Drama team.</a>.</p>
<p>Thanks,
<br>The Drama Team</p>
<p><strong>P.S.</strong> Feel free to tweet at us on Twitter <a href="https://www.twitter.com/drama">@drama</a>.</p>
<!-- Sub copy -->
<table class="body-sub" role="presentation">
<tr>
<td>

View File

@ -440,7 +440,7 @@
<table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="email-masthead">
<a href="https://rdrama.net" class="f-fallback email-masthead_name">
<a href="/" class="f-fallback email-masthead_name">
Drama
</a>
</td>

File diff suppressed because one or more lines are too long

View File

@ -49,13 +49,13 @@ On Drama, you can use Markdown formatting.
</tr>
<tr>
<td>Links</td>
<td>[Drama](https://rdrama.net)</td>
<td><a href="https://rdrama.net">Drama</a></td>
<td>[Drama]({{request.host_url}})</td>
<td><a href="{{request.host_url}}">Drama</a></td>
</tr>
<tr>
<td>Emojis</td>
<td>:marseylove:</td>
<td><img data-toggle="tooltip" title="marseylove" delay="0" height="20" src="/assets/images/emojis/marseylove.gif" <span=""></td>
<td><img data-toggle="tooltip" title="marseylove" delay="0" height="20" src="/assets/images/emojis/marseylove.gif"></td>
</tr>
</table>

View File

@ -113,7 +113,7 @@
</div>
<hr class="my-2">
<div class="px-2">
<a class="dropdown-item" href="javascript:void(0)", onclick="post('https://rdrama.net/logout', callback=function(){window.location.reload(true)})"><i class="fas fa-sign-out fa-fw text-left mr-3"></i>Log out</a>
<a class="dropdown-item" href="javascript:void(0)", onclick="post('/logout', callback=function(){window.location.reload(true)})"><i class="fas fa-sign-out fa-fw text-left mr-3"></i>Log out</a>
</div>
</div>
</div>
@ -167,7 +167,7 @@
<li class="nav-item"><a class="nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a></li>
<li class="nav-item border-top border-bottom mt-2 pt-2">
<a class="nav-link" href="javascript:void(0)", onclick="post('https://rdrama.net/logout', callback=function(){window.location.reload(true)})"><i class="fas fa-sign-out fa-fw mr-3 text-danger"></i>Log out</a>
<a class="nav-link" href="javascript:void(0)", onclick="post('/logout', callback=function(){window.location.reload(true)})"><i class="fas fa-sign-out fa-fw mr-3 text-danger"></i>Log out</a>
</li>
{% else %}
<li class="nav-item d-flex align-items-center justify-content-center pb-3">

View File

@ -52,12 +52,12 @@
<title>{% block pagetitle %}Settings - Drama{% endblock %}</title>
<meta property="og:type" content="article" />
<meta property="og:title" content="Drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta property="og:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta property="og:url" content="https://rdrama.net">
<meta property="og:url" content="/">
<meta property="og:description" name="description" content="Dude bussy lmao">
<meta property="og:author" name="author" content="@drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">
@ -65,7 +65,7 @@
<meta name="twitter:creator" content="@drama">
<meta name="twitter:description" content="Dude bussy lmao" />
<meta name="twitter:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta name="twitter:url" content="https://rdrama.net" />
<meta name="twitter:url" content="/" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel="stylesheet">
<!-- Bootstrap core CSS -->

View File

@ -13,12 +13,12 @@
<meta property="og:type" content="article" />
<meta property="og:title" content="Drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta property="og:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta property="og:url" content="{{request.path | full_link}}">
<meta property="og:description" name="description" content="Dude bussy lmao">
<meta property="og:author" name="author" content="@drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">

View File

@ -172,7 +172,7 @@
<div class="input-group">
<input type="text" readonly="" class="form-control copy-link" id="referral_code" value="https://rdrama.net/signup?ref={{v.username}}" data-clipboard-text="https://rdrama.net/signup?ref={{v.username}}">
<input type="text" readonly="" class="form-control copy-link" id="referral_code" value="{{request.host_url}}signup?ref={{v.username}}" data-clipboard-text="{{request.host_url}}signup?ref={{v.username}}">
<span class="input-group-append" data-toggle="tooltip" data-placement="top" title="You have referred {{v.referral_count}} user{{'s' if v.referral_count != 1 else ''}} so far. {% if v.referral_count==0 %}¯\_(ツ)_/¯{% elif v.referral_count>10%}Wow!{% endif %}">
<span class="input-group-text text-primary border-0">

View File

@ -70,12 +70,12 @@
<meta name="author" content="">
<meta property="og:type" content="article" />
<meta property="og:title" content="Drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta property="og:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta property="og:url" content="https://rdrama.net">
<meta property="og:url" content="/">
<meta property="og:description" name="description" content="Sign up now! Dude bussy lmao">
<meta property="og:author" name="author" content="@drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">
@ -83,7 +83,7 @@
<meta name="twitter:creator" content="@drama">
<meta name="twitter:description" content="Sign up now! Dude bussy lmao" />
<meta name="twitter:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta name="twitter:url" content="https://rdrama.net" />
<meta name="twitter:url" content="/" />
<title>{% if ref_user %}{{ref_user.username}} invites you to Drama{% else %}Sign up - Drama{% endif %}</title>

View File

@ -10,12 +10,12 @@
<meta name="author" content="">
<meta property="og:type" content="article" />
<meta property="og:title" content="Drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta property="og:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta property="og:url" content="https://rdrama.net">
<meta property="og:url" content="/">
<meta property="og:description" name="description" content="Sign up now! Dude bussy lmao">
<meta property="og:author" name="author" content="@drama" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">
@ -23,7 +23,7 @@
<meta name="twitter:creator" content="@drama">
<meta name="twitter:description" content="Sign up now! Dude bussy lmao" />
<meta name="twitter:image" content="{{'/assets/images/preview.png' | full_link}}" />
<meta name="twitter:url" content="https://rdrama.net" />
<meta name="twitter:url" content="/" />
<title>{% if ref_user %}{{ref_user.username}} invites you to Drama{% else %}Drama: the open, free-speech social platform{% endif %}</title>

View File

@ -37,7 +37,7 @@
<meta property="og:title" content="{{'@'+comment_info.author.username}} comments on {{title}} - Drama" />
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'/assets/images/preview.png' | full_link}}{% endif %}" />
<meta property="og:url" content="{{comment_info.permalink | full_link}}" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@drama">
@ -63,7 +63,7 @@
<meta property="og:title" content="{{title}} - Drama" />
<meta property="og:image" content="{% if p.is_image %}{{p.realurl(v)}}{% elif p.has_thumb%}{{p.thumb_url}}{% else %}{{'/assets/images/preview.png' | full_link}}{% endif %}" />
<meta property="og:url" content="{{p.permalink | full_link}}" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">
@ -112,7 +112,7 @@
{% endif %}
{% endif %}
<button class="btn btn-link btn-block btn-lg text-left text-muted"><a href="/votes?link=https://rdrama.net{{p.permalink}}"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</a></button>
<button class="btn btn-link btn-block btn-lg text-left text-muted"><a href="/votes?link={{p.fullname}}"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</a></button>
{% if v and v.id!=p.author_id %}
<button class="btn btn-link btn-block btn-lg text-left text-muted" data-toggle="modal" data-dismiss="modal" data-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift text-center text-muted mr-3"></i>Give Award</button>
@ -311,7 +311,7 @@
<li class="list-inline-item"><a href="javascript:void(0)" onclick="togglePostEdit('{{p.id}}')"><i class="fas fa-edit"></i>Edit</a></li>
{% endif %}
<li class="list-inline-item"><a href="/votes?link=https://rdrama.net{{p.permalink}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
<li class="list-inline-item"><a href="/votes?link={{p.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
{% if v and v.id!=p.author_id %}
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="javascript:void(0)" data-toggle="modal" data-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a></li>

View File

@ -131,7 +131,7 @@
{% endif %}
<li class="list-inline-item"><a {% if v and v.newtab %}target="_blank"{% endif %} href="{{p.permalink}}"><i class="fas fa-comment-dots"></i>{{p.comment_count}}</a></li>
<li class="list-inline-item"><a href="/votes?link=https://rdrama.net{{p.permalink}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
<li class="list-inline-item"><a href="/votes?link={{p.fullname}}"><i class="fas fa-arrows-v"></i>Votes</a></li>
{% if v and v.id!=p.author_id %}
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="javascript:void(0)" data-toggle="modal" data-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a></li>
@ -293,7 +293,7 @@
</div>
<div class="modal-body">
<ul class="list-group post-actions">
<button class="btn btn-link btn-block btn-lg text-left text-muted"><a href="/votes?link=https://rdrama.net{{p.permalink}}"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</a></button>
<button class="btn btn-link btn-block btn-lg text-left text-muted"><a href="/votes?link={{p.fullname}}"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</a></button>
{% if v and v.id!=p.author_id %}
<li class="list-inline-item text-muted d-none d-md-inline-block"><a href="javascript:void(0)" data-toggle="modal" data-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift fa-fw"></i>Give Award</a></li>

View File

@ -30,7 +30,7 @@
<meta property="og:title" content="{{u.username}}" />
<meta property="og:image" content="{% if u.bannerurl %}{{u.banner_url}}{% else %}{{'/assets/images/preview.png' | full_link}}{% endif %}" />
<meta property="og:url" content="{{u.permalink | full_link}}" />
<meta property="og:site_name" content="rdrama.net" />
<meta property="og:site_name" content="/" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@drama">