master
Aevann1 2021-09-25 19:43:45 +02:00
parent a7db585d43
commit 55c758f6e6
3 changed files with 8 additions and 6 deletions

View File

@ -646,6 +646,8 @@ def unfollow_user(username, v):
target = get_user(username)
if target.id == 995: abort(403)
# check for existing follow
follow = g.db.query(Follow).options(lazyload('*')).filter_by(user_id=v.id, target_id=target.id).first()

View File

@ -6,7 +6,7 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
{% if v and v.agendaposter %}
<script type="text/javascript">
<script>
/*
Bug.js - https://github.com/Auz/Bug
Released under MIT-style license.
@ -46,7 +46,7 @@
this.bug&&this.bug.style?{top:parseInt(this.bug.top,10),left:parseInt(this.bug.left,10)}:null}},SpawnBug=function(){var a={},b;for(b in Bug)Bug.hasOwnProperty(b)&&(a[b]=Bug[b]);return a},mergeOptions=function(a,b,c){"undefined"==typeof c&&(c=!0);a=c?cloneOf(a):a;for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);return a},cloneOf=function(a){if(null==a||"object"!=typeof a)return a;var b=a.constructor(),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=cloneOf(a[c]));return b};
window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){window.setTimeout(a,1E3/60)}}();
</script>
<script type="text/javascript">
<script>
new BugController({
imageSprite: "/assets/images/fly-sprite.webp",
canDie: false,

View File

@ -211,10 +211,10 @@
{% block content %}
{% if p.award_count("shit") %}
<script src="/assets/js/bug-min.js" type="text/javascript"></script>
<script src="/assets/js/bug-min.js"></script>
{% set minbugs = 10*p.award_count("shit") if p.award_count("shit") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %}
<script type="text/javascript">
<script>
new BugController({
imageSprite: "/assets/images/fly-sprite.webp",
canDie: false,
@ -227,10 +227,10 @@
{% if p.award_count("fireflies") %}
<script src="/assets/js/fireflies.js" type="text/javascript"></script>
<script src="/assets/js/fireflies.js"></script>
{% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 20 %}
{% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %}
<script type="text/javascript">
<script>
new BugController({
imageSprite: "/assets/images/fireflies.webp",
canDie: false,