mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
minor bugfixes
This commit is contained in:
parent
e1f410151e
commit
a36a56eec6
6 changed files with 20 additions and 9 deletions
|
@ -707,7 +707,7 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
|
||||||
user.flush_cache()
|
user.flush_cache()
|
||||||
if user.instance_id and user.instance_id != 1:
|
if user.instance_id and user.instance_id != 1:
|
||||||
user.instance.last_seen = utcnow()
|
user.instance.last_seen = utcnow()
|
||||||
user.instance.ip_address = ip_address
|
# user.instance.ip_address = ip_address
|
||||||
user.instance.dormant = False
|
user.instance.dormant = False
|
||||||
if 'community' in vars() and community is not None:
|
if 'community' in vars() and community is not None:
|
||||||
if community.is_local() and request_json['type'] not in ['Announce', 'Follow', 'Accept', 'Undo']:
|
if community.is_local() and request_json['type'] not in ['Announce', 'Follow', 'Accept', 'Undo']:
|
||||||
|
|
|
@ -202,7 +202,9 @@ def admin_community_edit(community_id):
|
||||||
community.name = form.url.data
|
community.name = form.url.data
|
||||||
community.title = form.title.data
|
community.title = form.title.data
|
||||||
community.description = form.description.data
|
community.description = form.description.data
|
||||||
|
community.description_html = markdown_to_html(form.description.data)
|
||||||
community.rules = form.rules.data
|
community.rules = form.rules.data
|
||||||
|
community.rules_html = markdown_to_html(form.rules.data)
|
||||||
community.nsfw = form.nsfw.data
|
community.nsfw = form.nsfw.data
|
||||||
community.local_only = form.local_only.data
|
community.local_only = form.local_only.data
|
||||||
community.restricted_to_mods = form.restricted_to_mods.data
|
community.restricted_to_mods = form.restricted_to_mods.data
|
||||||
|
|
|
@ -36,7 +36,8 @@ def add_local():
|
||||||
private_key, public_key = RsaKeys.generate_keypair()
|
private_key, public_key = RsaKeys.generate_keypair()
|
||||||
community = Community(title=form.community_name.data, name=form.url.data, description=form.description.data,
|
community = Community(title=form.community_name.data, name=form.url.data, description=form.description.data,
|
||||||
rules=form.rules.data, nsfw=form.nsfw.data, private_key=private_key,
|
rules=form.rules.data, nsfw=form.nsfw.data, private_key=private_key,
|
||||||
public_key=public_key,
|
public_key=public_key, description_html=markdown_to_html(form.description.data),
|
||||||
|
rules_html=markdown_to_html(form.rules.data),
|
||||||
ap_profile_id='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data,
|
ap_profile_id='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data,
|
||||||
ap_followers_url='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data + '/followers',
|
ap_followers_url='https://' + current_app.config['SERVER_NAME'] + '/c/' + form.url.data + '/followers',
|
||||||
subscriptions_count=1, instance_id=1, low_quality='memes' in form.url.data)
|
subscriptions_count=1, instance_id=1, low_quality='memes' in form.url.data)
|
||||||
|
|
|
@ -396,6 +396,9 @@ fieldset legend {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
.card .card-body img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#breadcrumb_nav {
|
#breadcrumb_nav {
|
||||||
font-size: 87%;
|
font-size: 87%;
|
||||||
|
|
|
@ -49,6 +49,12 @@ nav, etc which are used site-wide */
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#breadcrumb_nav {
|
#breadcrumb_nav {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
chilling
|
chilling
|
||||||
https://kbin.social/m/AskKbin
|
https://kbin.social/m/AskKbin
|
||||||
https://kbin.social/m/TodayILearned
|
https://lemmy.world/c/til
|
||||||
https://kbin.social/m/showerthoughts
|
https://lemmy.world/c/unpopularopinion
|
||||||
|
https://lemmy.world/c/showerthoughts
|
||||||
https://kbin.social/m/ELI5
|
https://kbin.social/m/ELI5
|
||||||
https://kbin.social/m/scifi
|
https://kbin.social/m/scifi
|
||||||
https://kbin.social/m/wholesome
|
https://lemmy.world/c/lemmybewholesome
|
||||||
https://kbin.social/m/oddlysatisfying
|
|
||||||
https://kbin.social/m/Funny
|
https://kbin.social/m/Funny
|
||||||
https://kbin.social/m/photography
|
https://kbin.social/m/photography
|
||||||
https://kbin.social/m/videos
|
https://kbin.social/m/videos
|
||||||
|
@ -49,8 +49,8 @@ gaming
|
||||||
|
|
||||||
interesting stuff
|
interesting stuff
|
||||||
https://kbin.social/m/science
|
https://kbin.social/m/science
|
||||||
https://kbin.social/m/space
|
https://lemmy.world/c/space
|
||||||
https://kbin.social/m/interestingasfuck
|
https://lemmy.world/c/interestingasfuck
|
||||||
https://kbin.social/m/Futurology
|
https://kbin.social/m/Futurology
|
||||||
https://kbin.social/m/mildlyinteresting
|
https://kbin.social/m/mildlyinteresting
|
||||||
https://lemmy.world/c/mildlyinteresting
|
https://lemmy.world/c/mildlyinteresting
|
||||||
|
@ -136,7 +136,6 @@ lgbtq
|
||||||
https://lemmy.blahaj.zone/c/ftm
|
https://lemmy.blahaj.zone/c/ftm
|
||||||
https://lemmy.blahaj.zone/c/mtf
|
https://lemmy.blahaj.zone/c/mtf
|
||||||
https://lemmy.blahaj.zone/c/lgbtq_plus
|
https://lemmy.blahaj.zone/c/lgbtq_plus
|
||||||
https://lemmy.blahaj.zone/c/ftm
|
|
||||||
https://lemmy.one/c/nonbinary
|
https://lemmy.one/c/nonbinary
|
||||||
|
|
||||||
environment
|
environment
|
||||||
|
|
Loading…
Reference in a new issue